mruby-compiler: add type cast to silence warning

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-03-25 08:10:04 +09:00
parent a574034cb2
commit b446b0d547
+1 -1
View File
@@ -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;
}