Skip to content

Commit 0268214

Browse files
jmarcelinoddunbar
authored andcommitted
Fixes ‘Illegal instruction’ crash caused by SR-2339 (swiftlang#605)
1 parent 8f76da6 commit 0268214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageDescription/Version.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension Version: Hashable {
5656
if let build = buildMetadataIdentifier {
5757
result = (result &* mul) ^ UInt64(build.hashValue)
5858
}
59-
return Int(bitPattern: UInt(result))
59+
return Int(truncatingBitPattern: result)
6060
}
6161
}
6262

0 commit comments

Comments
 (0)