diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-27 06:02:55 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-27 06:02:55 +0000 |
| commit | e2f8997ddf5b25c2f3dff95362c6892783e25a0e (patch) | |
| tree | 9c8918bf2bfcfeb6b1cb758e364bf3c920a0a066 /string.c | |
| parent | fe0b6fd14e78efdf5a935c80d41d526c44327fed (diff) | |
| download | ruby-e2f8997ddf5b25c2f3dff95362c6892783e25a0e.tar.gz ruby-e2f8997ddf5b25c2f3dff95362c6892783e25a0e.tar.xz ruby-e2f8997ddf5b25c2f3dff95362c6892783e25a0e.zip | |
* string.c (rb_str_casecmp): fixed using a wrong variable.
[ruby-list:44402]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
