mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Changed a variable declaration to top of block
This commit is contained in:
+1
-1
@@ -402,8 +402,8 @@ new_lit(codegen_scope *s, mrb_value val)
|
||||
switch (mrb_type(val)) {
|
||||
case MRB_TT_STRING:
|
||||
for (i=0; i<s->irep->plen; i++) {
|
||||
pv = &s->irep->pool[i];
|
||||
mrb_int len;
|
||||
pv = &s->irep->pool[i];
|
||||
|
||||
if (pv->type != MRB_TT_STRING) continue;
|
||||
if ((len = pv->value.s->len) != RSTRING_LEN(val)) continue;
|
||||
|
||||
Reference in New Issue
Block a user