From c2e4b82d849568b809ad0afe000c47c386a9247a Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 26 Jul 2022 13:55:54 +0900 Subject: [PATCH] codegen.c (new_litbint): remove surrounding braces. It was to allow local variable declarations, but now we allow declarations in the middle. --- mrbgems/mruby-compiler/core/codegen.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 3cc3bc437..f48867162 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -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; }