Commit 9ca17458 authored by Jun Hiroe's avatar Jun Hiroe

Replace int with mrb_bool in local_var_p func

parent 9d8be78f
......@@ -240,7 +240,7 @@ local_unnest(parser_state *p)
p->locals = p->locals->cdr;
}
static int
static mrb_bool
local_var_p(parser_state *p, mrb_sym sym)
{
node *l = p->locals;
......@@ -248,12 +248,12 @@ local_var_p(parser_state *p, mrb_sym sym)
while (l) {
node *n = l->car;
while (n) {
if (sym(n->car) == sym) return 1;
if (sym(n->car) == sym) return TRUE;
n = n->cdr;
}
l = l->cdr;
}
return 0;
return FALSE;
}
static void
......
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