Skip to content

Commit 0269930

Browse files
committed
fixed small String comparsion for big_endian
(cherry picked from commit 197c963)
1 parent 8efbb50 commit 0269930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/StringComparison.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ internal func _stringCompareWithSmolCheck(
3333

3434
if lhsRaw.0 != rhsRaw.0 {
3535
return _lexicographicalCompare(
36-
lhsRaw.0.byteSwapped, rhsRaw.0.byteSwapped, expecting: expecting)
36+
lhsRaw.0.bigEndian, rhsRaw.0.bigEndian, expecting: expecting)
3737
}
3838
return _lexicographicalCompare(
39-
lhsRaw.1.byteSwapped, rhsRaw.1.byteSwapped, expecting: expecting)
39+
lhsRaw.1.bigEndian, rhsRaw.1.bigEndian, expecting: expecting)
4040
}
4141

4242
return _stringCompareInternal(lhs, rhs, expecting: expecting)

0 commit comments

Comments
 (0)