From e8ce82bf31ab83e3aa4b26dc571704593e2a4ebd Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 26 Jul 2022 00:11:53 +0900 Subject: [PATCH] codegen.c (new_litbint): forgot `else` in a107b85. --- mrbgems/mruby-compiler/core/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 70df1b030..3cc3bc437 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -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;