Fix typos and make demo work with -vet

This commit is contained in:
gingerBill
2019-10-08 20:28:45 +01:00
parent 71b32ae117
commit 1b8c3ca22a
5 changed files with 10 additions and 9 deletions

View File

@@ -1345,7 +1345,7 @@ bool is_semicolon_optional_for_node(AstFile *f, Ast *s) {
case Ast_EnumType:
case Ast_BitFieldType:
// Require semicolon within a procedure body
return f->curr_proc == false;
return f->curr_proc == nullptr;
case Ast_ProcLit:
return true;