diff --git a/ChangeLog b/ChangeLog index 6f6f533428..9e2735e1e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 27 15:02:52 2007 Nobuyoshi Nakada + + * string.c (rb_str_casecmp): fixed using a wrong variable. + [ruby-list:44402] + Thu Dec 27 14:34:38 2007 Tanaka Akira * io.c (io_fflush): checks wbuf modification by other threads. 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);