mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 07:08:48 +03:00
Minor improvements
This commit is contained in:
parent
7d2928b24a
commit
230a30ec9c
1 changed files with 2 additions and 2 deletions
|
@ -7790,7 +7790,7 @@ if (isInputRange!S1 && isSomeChar!(ElementEncodingType!S1)
|
|||
int diff = lhs - rhs;
|
||||
if (!diff)
|
||||
continue;
|
||||
else if ((lhs | rhs) < 0x80)
|
||||
if ((lhs | rhs) < 0x80)
|
||||
{
|
||||
auto lowL = std.ascii.toLower(lhs);
|
||||
auto lowR = std.ascii.toLower(rhs);
|
||||
|
@ -7822,7 +7822,7 @@ if (isInputRange!S1 && isSomeChar!(ElementEncodingType!S1)
|
|||
// one of chars is not cased at all
|
||||
return diff;
|
||||
}
|
||||
return r2.empty ? 0 : -1;
|
||||
return -int(r2.empty);
|
||||
}
|
||||
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue