* expand tabs. [ci skip]
This commit is contained in:
parent
6954ff1dcb
commit
132b7eb104
4
string.c
4
string.c
@ -3417,8 +3417,8 @@ str_casecmp(VALUE str1, VALUE str2)
|
|||||||
if (single_byte_optimizable(str1) && single_byte_optimizable(str2)) {
|
if (single_byte_optimizable(str1) && single_byte_optimizable(str2)) {
|
||||||
while (p1 < p1end && p2 < p2end) {
|
while (p1 < p1end && p2 < p2end) {
|
||||||
if (*p1 != *p2) {
|
if (*p1 != *p2) {
|
||||||
unsigned int c1 = TOLOWER(*p1 & 0xff);
|
unsigned int c1 = TOLOWER(*p1 & 0xff);
|
||||||
unsigned int c2 = TOLOWER(*p2 & 0xff);
|
unsigned int c2 = TOLOWER(*p2 & 0xff);
|
||||||
if (c1 != c2)
|
if (c1 != c2)
|
||||||
return INT2FIX(c1 < c2 ? -1 : 1);
|
return INT2FIX(c1 < c2 ? -1 : 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user