mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Replace int with mrb_bool in local_var_p func
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user