aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parse_tree.cpp')
-rw-r--r--parse_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_tree.cpp b/parse_tree.cpp
index 36c94544..fe1e2527 100644
--- a/parse_tree.cpp
+++ b/parse_tree.cpp
@@ -525,7 +525,7 @@ class parse_ll_t
{
PARSE_ASSERT(! symbol_stack.empty());
const parse_stack_element_t &top_symbol = symbol_stack.back();
- PARSE_ASSERT(top_symbol.node_idx != -1);
+ PARSE_ASSERT(top_symbol.node_idx != NODE_OFFSET_INVALID);
PARSE_ASSERT(top_symbol.node_idx < nodes.size());
return nodes.at(top_symbol.node_idx);
}