From 6aef04f33827f18bf3e65eeae8bb2527ef0f4360 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 27 Dec 2007 06:02:55 +0000 Subject: * string.c (rb_str_casecmp): fixed using a wrong variable. [ruby-list:44402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index c4319a4896..7a88e79330 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); -- cgit v1.2.3