Reduce integer type mismatch warnings in VC.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-08-12 09:35:35 +09:00
parent baa5d2e3f7
commit 8bf492f127
17 changed files with 121 additions and 116 deletions
+2 -2
View File
@@ -47,13 +47,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_irep *irep, uint32_t pc);
MRB_API const char *mrb_debug_get_filename(mrb_irep *irep, ptrdiff_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_irep *irep, uint32_t pc);
MRB_API int32_t mrb_debug_get_line(mrb_irep *irep, ptrdiff_t pc);
MRB_API mrb_irep_debug_info_file *mrb_debug_info_append_file(
mrb_state *mrb, mrb_irep *irep,
+1 -1
View File
@@ -44,7 +44,7 @@ typedef struct mrb_irep {
uint16_t *lines;
struct mrb_irep_debug_info* debug_info;
size_t ilen, plen, slen, rlen, refcnt;
int ilen, plen, slen, rlen, refcnt;
struct RProc *outer; /* Refers outer scope */
} mrb_irep;