1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2007-12-27 06:02:55 +00:00
parent fc9cc7440a
commit 6aef04f338
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 27 15:02:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_casecmp): fixed using a wrong variable.
[ruby-list:44402]
Thu Dec 27 14:34:38 2007 Tanaka Akira <akr@fsij.org>
* io.c (io_fflush): checks wbuf modification by other threads.

View file

@ -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);