diff options
Diffstat (limited to 'gdb/ch-lang.c')
-rw-r--r-- | gdb/ch-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c index 12d2f98..8504d67 100644 --- a/gdb/ch-lang.c +++ b/gdb/ch-lang.c @@ -521,7 +521,7 @@ evaluate_subexp_chill (expect_type, exp, pos, noside) { case TYPE_CODE_PTR: type = check_typedef (TYPE_TARGET_TYPE (type)); - if (!type || TYPE_CODE (type) || TYPE_CODE_FUNC) + if (!type || TYPE_CODE (type) != TYPE_CODE_FUNC) error ("reference value used as function"); /* ... fall through ... */ case TYPE_CODE_FUNC: |