diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-23 01:20:45 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-03-23 01:20:45 +0900 |
| commit | 9eb0c11afd8ca26d08cccd464aef6ef4b4216586 (patch) | |
| tree | 451739b040050bb55c5d0b4653c110f5fb245361 /mrbgems/mruby-compiler | |
| parent | 41f5c5b2c7e0411ae416bd7915e8772c569f3182 (diff) | |
| download | mruby-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.c | 2 |
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(); |
