From b446b0d547ce2982e4a7650f4dcb1f9c5afce5ed Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 25 Mar 2025 08:10:04 +0900 Subject: [PATCH] mruby-compiler: add type cast to silence warning --- 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 357440d20..be0bf875a 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -811,7 +811,7 @@ realloc_pool_str(codegen_scope *s, mrb_irep_pool *p, mrb_int len) str = (char*)p->u.str; str = (char*)codegen_realloc(s, str, len+1); } - p->tt = len<<2 | IREP_TT_STR; + p->tt = (uint32_t)(len<<2 | IREP_TT_STR); str[len] = '\0'; p->u.str = (const char*)str; }