summaryrefslogtreecommitdiffhomepage
path: root/src/debug.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-11 15:06:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-08-11 15:06:51 +0900
commit5e55b61c44f512b31094f20aee08f6f921344870 (patch)
tree1b7012b0336261163b44db5a996341e18591d80e /src/debug.c
parent4695dfdcb6ce412d4aa4efb146c56c5c32a50e43 (diff)
downloadmruby-5e55b61c44f512b31094f20aee08f6f921344870.tar.gz
mruby-5e55b61c44f512b31094f20aee08f6f921344870.zip
Fix `mrb_int` and `size_t` combination warnings.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 4aeed2ff7..32add68ae 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -64,7 +64,7 @@ mrb_debug_get_filename(mrb_state *mrb, mrb_irep *irep, ptrdiff_t pc)
}
MRB_API int32_t
-mrb_debug_get_line(mrb_state *mrb, mrb_irep *irep, ptrdiff_t pc)
+mrb_debug_get_line(mrb_state *mrb, const mrb_irep *irep, size_t pc)
{
if (irep && pc >= 0 && pc < irep->ilen) {
mrb_irep_debug_info_file* f = NULL;