mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] extendingOrTruncating: => truncatingIfNeeded:
This commit is contained in:
committed by
Max Moiseev
parent
d018ecccf5
commit
a5ff35cd41
@@ -248,7 +248,7 @@ struct ${Self} {
|
||||
internal mutating func _finalizeAndReturnIntHash() -> Int {
|
||||
let hash: UInt64 = finalizeAndReturnHash()
|
||||
#if arch(i386) || arch(arm)
|
||||
return Int(extendingOrTruncating: hash)
|
||||
return Int(truncatingIfNeeded: hash)
|
||||
#elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
|
||||
return Int(Int64(bitPattern: hash))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user