mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Cast to mrb_int to silence a warning; fix #3530
This commit is contained in:
@@ -2199,7 +2199,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
char buf[32];
|
||||
int sym;
|
||||
|
||||
snprintf(buf, sizeof(buf), "$%" PRId64, (intptr_t)tree);
|
||||
snprintf(buf, sizeof(buf), "$%" MRB_PRId, (mrb_int)(intptr_t)tree);
|
||||
sym = new_sym(s, mrb_intern_cstr(mrb, buf));
|
||||
genop(s, MKOP_ABx(OP_GETGLOBAL, cursp(), sym));
|
||||
push();
|
||||
|
||||
Reference in New Issue
Block a user