codegen.c (new_litbint): forgot else in a107b85.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-26 00:11:53 +09:00
parent 3d1b5d2b06
commit e8ce82bf31
+1 -1
View File
@@ -1028,7 +1028,7 @@ new_litbint(codegen_scope *s, const char *p, int base, mrb_bool neg)
buf = (char*)codegen_realloc(s, NULL, plen+3);
buf[0] = (char)plen;
if (neg) buf[1] = -base;
buf[1] = base;
else buf[1] = base;
memcpy(buf+2, p, plen);
buf[plen+2] = '\0';
pv->u.str = buf;