Skip to content

Commit 9eb0c11

Browse files
committed
Cast to mrb_int to silence a warning; fix #3530
1 parent 41f5c5b commit 9eb0c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mrbgems/mruby-compiler/core/codegen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ codegen(codegen_scope *s, node *tree, int val)
21992199
char buf[32];
22002200
int sym;
22012201

2202-
snprintf(buf, sizeof(buf), "$%" PRId64, (intptr_t)tree);
2202+
snprintf(buf, sizeof(buf), "$%" MRB_PRId, (mrb_int)(intptr_t)tree);
22032203
sym = new_sym(s, mrb_intern_cstr(mrb, buf));
22042204
genop(s, MKOP_ABx(OP_GETGLOBAL, cursp(), sym));
22052205
push();

0 commit comments

Comments
 (0)