* ch-lang.c (evaluate_subexp_chill): Fix typo.

This commit is contained in:
Fred Fish
1996-03-23 19:52:50 +00:00
parent 8a1d8a0b60
commit b9aa6215c9
2 changed files with 9 additions and 1 deletions

View File

@ -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: