From ed29d74bfd95362eaeb946fcf7e865d80346b62b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 7 Dec 2020 13:56:25 +0900 Subject: Make type of `pc` arguments in `debug.c` consistent; close #5218 They used to be `size_t`, `uint32_t` and `ptrdiff_t`. Now all of them made to be `uint32_t`. --- include/mruby/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mruby/debug.h b/include/mruby/debug.h index f22c7c77b..2062a9308 100644 --- a/include/mruby/debug.h +++ b/include/mruby/debug.h @@ -46,13 +46,13 @@ typedef struct mrb_irep_debug_info { * get line from irep's debug info and program counter * @return returns NULL if not found */ -MRB_API const char *mrb_debug_get_filename(mrb_state *mrb, const mrb_irep *irep, ptrdiff_t pc); +MRB_API const char *mrb_debug_get_filename(mrb_state *mrb, const mrb_irep *irep, uint32_t pc); /* * get line from irep's debug info and program counter * @return returns -1 if not found */ -MRB_API int32_t mrb_debug_get_line(mrb_state *mrb, const mrb_irep *irep, size_t pc); +MRB_API int32_t mrb_debug_get_line(mrb_state *mrb, const mrb_irep *irep, uint32_t pc); MRB_API mrb_irep_debug_info *mrb_debug_info_alloc(mrb_state *mrb, mrb_irep *irep); MRB_API mrb_irep_debug_info_file *mrb_debug_info_append_file( -- cgit v1.2.3