summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-03-23 01:20:45 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-03-23 01:20:45 +0900
commit9eb0c11afd8ca26d08cccd464aef6ef4b4216586 (patch)
tree451739b040050bb55c5d0b4653c110f5fb245361 /mrbgems/mruby-compiler
parent41f5c5b2c7e0411ae416bd7915e8772c569f3182 (diff)
downloadmruby-9eb0c11afd8ca26d08cccd464aef6ef4b4216586.tar.gz
mruby-9eb0c11afd8ca26d08cccd464aef6ef4b4216586.zip
Cast to mrb_int to silence a warning; fix #3530
Diffstat (limited to 'mrbgems/mruby-compiler')
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c
index 34efdf732..59cc54f30 100644
--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/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();