summaryrefslogtreecommitdiffstats
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 c4319a489..7a88e7933 100644
--- a/string.c
+++ b/string.c
@@ -1437,7 +1437,7 @@ rb_str_casecmp(VALUE str1, VALUE str2)
return rb_str_cmp(str1, str2);
}
- p1 = RSTRING_PTR(str1); p1end = RSTRING_END(p1);
+ p1 = RSTRING_PTR(str1); p1end = RSTRING_END(str1);
p2 = RSTRING_PTR(str2); p2end = RSTRING_END(str2);
while (p1 < p1end && p2 < p2end) {
int c1 = rb_enc_codepoint(p1, p1end, enc);