summaryrefslogtreecommitdiff
path: root/gdb/ch-lang.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-03-23 19:52:50 +0000
committerFred Fish <fnf@specifix.com>1996-03-23 19:52:50 +0000
commitb9aa6215c9345163c205c04c320f73abf87c6d73 (patch)
tree61a8fc729440496813ec4811ffd42dcf3335bf86 /gdb/ch-lang.c
parent8a1d8a0b60316b3b18e37f1b351a7137bb8f8ff0 (diff)
downloadbinutils-gdb-b9aa6215c9345163c205c04c320f73abf87c6d73.tar.gz
* ch-lang.c (evaluate_subexp_chill): Fix typo.
Diffstat (limited to 'gdb/ch-lang.c')
-rw-r--r--gdb/ch-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c
index 12d2f988c6e..8504d670a52 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: