aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-08 20:28:45 +0100
committergingerBill <bill@gingerbill.org>2019-10-08 20:28:45 +0100
commit1b8c3ca22a28b8ca36175d3e20a3993cba315dae (patch)
treebe4d7800af148541425a37927c3aa17af0f9a4d8 /src/parser.cpp
parent71b32ae117a2e9fcbcd290ea9d7e587b23ed7403 (diff)
Fix typos and make demo work with -vet
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index e17d19787..025a181ba 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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;