From 9eb0c11afd8ca26d08cccd464aef6ef4b4216586 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 23 Mar 2017 01:20:45 +0900 Subject: Cast to mrb_int to silence a warning; fix #3530 --- mrbgems/mruby-compiler/core/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3