From 8bf492f12707777c321dcf40494f757947649f62 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 12 Aug 2017 09:35:35 +0900 Subject: Reduce integer type mismatch warnings in VC. --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 8e431af95..7c04ad148 100644 --- a/src/debug.c +++ b/src/debug.c @@ -51,7 +51,7 @@ select_line_type(const uint16_t *lines, size_t lines_len) } MRB_API char const* -mrb_debug_get_filename(mrb_irep *irep, uint32_t pc) +mrb_debug_get_filename(mrb_irep *irep, ptrdiff_t pc) { if (irep && pc < irep->ilen) { mrb_irep_debug_info_file* f = NULL; @@ -64,7 +64,7 @@ mrb_debug_get_filename(mrb_irep *irep, uint32_t pc) } MRB_API int32_t -mrb_debug_get_line(mrb_irep *irep, uint32_t pc) +mrb_debug_get_line(mrb_irep *irep, ptrdiff_t pc) { if (irep && pc < irep->ilen) { mrb_irep_debug_info_file* f = NULL; -- cgit v1.2.3