parse.y: fix an integer cast warning.

parent 984161e6
...@@ -7762,7 +7762,7 @@ mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_ ...@@ -7762,7 +7762,7 @@ mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_
if ((intptr_t)n->car == NODE_SCOPE) { if ((intptr_t)n->car == NODE_SCOPE) {
n = n->cdr->car; n = n->cdr->car;
for (; n; n = n->cdr) { for (; n; n = n->cdr) {
mrb_sym sym = (intptr_t)n->car; mrb_sym sym = sym(n->car);
if (sym && !func(mrb, sym, user)) break; if (sym && !func(mrb, sym, user)) break;
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment