aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sem_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sem_check.c b/sem_check.c
index a3d08b8..d174bf8 100644
--- a/sem_check.c
+++ b/sem_check.c
@@ -82,7 +82,7 @@ ptree *t;
yyerror(buf);
break;
case NOT:
- if (t->ret_type == BOOL)
+ if (t->l && t->l->ret_type == BOOL)
return BOOL;
yyerror("NOT needs bool input\n");
break;