Permalink
Browse files

Cast to mrb_int to silence a warning; fix #3530

  • Loading branch information...
matz committed Mar 22, 2017
1 parent 41f5c5b commit 9eb0c11afd8ca26d08cccd464aef6ef4b4216586
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-compiler/core/codegen.c
@@ -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();

0 comments on commit 9eb0c11

Please sign in to comment.