Changed a variable declaration to top of block

This commit is contained in:
bggd
2013-11-13 22:53:20 +09:00
parent 86c80139ab
commit 0cbdbd81cb
+1 -1
View File
@@ -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;