summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-binding-core
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-01 11:38:30 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-01 11:38:30 +0900
commitf3507818e72340844059f536de9dc385582bb003 (patch)
treec7016997845b144030610c53cd47783958dda4a5 /mrbgems/mruby-binding-core
parent935a13555391a69b53c4b80b4d014f042b3614ff (diff)
downloadmruby-f3507818e72340844059f536de9dc385582bb003.tar.gz
mruby-f3507818e72340844059f536de9dc385582bb003.zip
binding-core.c: add cast to remove warnings; ref #5362
Diffstat (limited to 'mrbgems/mruby-binding-core')
-rw-r--r--mrbgems/mruby-binding-core/src/binding-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-binding-core/src/binding-core.c b/mrbgems/mruby-binding-core/src/binding-core.c
index 5563783c4..209da8bf9 100644
--- a/mrbgems/mruby-binding-core/src/binding-core.c
+++ b/mrbgems/mruby-binding-core/src/binding-core.c
@@ -198,8 +198,8 @@ binding_source_location(mrb_state *mrb, mrb_value self)
srcloc = mrb_nil_value();
}
else {
- const char *fname = mrb_debug_get_filename(mrb, irep, pc);
- mrb_int fline = mrb_debug_get_line(mrb, irep, pc);
+ const char *fname = mrb_debug_get_filename(mrb, irep, (uint32_t)pc);
+ mrb_int fline = mrb_debug_get_line(mrb, irep, (uint32_t)pc);
if (fname && fline >= 0) {
srcloc = mrb_assoc_new(mrb, mrb_str_new_cstr(mrb, fname), mrb_fixnum_value(fline));