Replace int with mrb_bool in local_var_p func

This commit is contained in:
Jun Hiroe
2014-10-27 11:27:15 +09:00
parent 9d8be78f3a
commit 9ca1745833
+3 -3
View File
@@ -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