aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index e1cedf42aa..776a4d32ae 100644
--- a/string.c
+++ b/string.c
@@ -5837,7 +5837,7 @@ static void
rb_str_ascii_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc)
{
OnigUChar *source_current, *source_end;
- int old_length = RSTRING_LEN(source);
+ long old_length = RSTRING_LEN(source);
int length_or_invalid;
if (old_length == 0) return;