summaryrefslogtreecommitdiffhomepage
path: root/src/string.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/string.c
parent4695dfdcb6ce412d4aa4efb146c56c5c32a50e43 (diff)
downloadmruby-5e55b61c44f512b31094f20aee08f6f921344870.tar.gz
mruby-5e55b61c44f512b31094f20aee08f6f921344870.zip
Fix `mrb_int` and `size_t` combination warnings.
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 78c41c5f3..f2c52404e 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2258,7 +2258,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
}
mrb_value
-mrb_str_len_to_inum(mrb_state *mrb, const char *str, mrb_int len, mrb_int base, int badcheck)
+mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, mrb_int base, int badcheck)
{
const char *p = str;
const char *pend = str + len;