diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-17 14:15:21 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-17 14:15:21 -0400 |
commit | 1ff4c71e7a5140cd045a9483a76d667bd6837744 (patch) | |
tree | afc13d15309d65d545bb5937484c835962e47c67 | |
parent | 950a05bb51c231a690aff725068703946231a6a7 (diff) |
Fix not type checking
-rw-r--r-- | sem_check.c | 2 |
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; |