codegen.c (new_litbint): remove surrounding braces.

It was to allow local variable declarations, but now we allow
declarations in the middle.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-26 13:55:54 +09:00
parent 26ce85bd5d
commit c2e4b82d84
+10 -11
View File
@@ -1022,17 +1022,16 @@ new_litbint(codegen_scope *s, const char *p, int base, mrb_bool neg)
pv = lit_pool_extend(s);
{
char *buf;
pv->tt = IREP_TT_BIGINT;
buf = (char*)codegen_realloc(s, NULL, plen+3);
buf[0] = (char)plen;
if (neg) buf[1] = -base;
else buf[1] = base;
memcpy(buf+2, p, plen);
buf[plen+2] = '\0';
pv->u.str = buf;
}
char *buf;
pv->tt = IREP_TT_BIGINT;
buf = (char*)codegen_realloc(s, NULL, plen+3);
buf[0] = (char)plen;
if (neg) buf[1] = -base;
else buf[1] = base;
memcpy(buf+2, p, plen);
buf[plen+2] = '\0';
pv->u.str = buf;
return i;
}