aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
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;