From b9aa6215c9345163c205c04c320f73abf87c6d73 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 23 Mar 1996 19:52:50 +0000 Subject: * ch-lang.c (evaluate_subexp_chill): Fix typo. --- gdb/ch-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ch-lang.c') 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: -- cgit v1.1