mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-compiler: add type cast to silence warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user