Skip to content

Commit 9772999

Browse files
authored
Merge pull request #22172 from linux-on-ibm-z/swift-5.0_s390x_string_comparison
fixed small String comparsion for big_endian
2 parents ee5ae18 + 0269930 commit 9772999

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)