summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 4b1f02106..7987bae18 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4647,7 +4647,7 @@ mrb_parser_parse(parser_state *p)
}
}
else {
- if ((int)tree->car == NODE_SCOPE) {
+ if ((int)(intptr_t)tree->car == NODE_SCOPE) {
p->locals = cons(tree->cdr->car, 0);
}
if (p->begin_tree) {