aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index b831e9e931..33e14c1f24 100644
--- a/string.c
+++ b/string.c
@@ -3497,7 +3497,7 @@ str_casecmp(VALUE str1, VALUE str2)
{
long len;
rb_encoding *enc;
- char *p1, *p1end, *p2, *p2end;
+ const char *p1, *p1end, *p2, *p2end;
enc = rb_enc_compatible(str1, str2);
if (!enc) {