summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index f50468cca..54987ca64 100644
--- a/src/string.c
+++ b/src/string.c
@@ -488,7 +488,7 @@ check_frozen(mrb_state *mrb, struct RString *s)
static mrb_value
str_replace(mrb_state *mrb, struct RString *s1, struct RString *s2)
{
- long len;
+ mrb_int len;
check_frozen(mrb, s1);
if (s1 == s2) return mrb_obj_value(s1);