Another fix for arm32 and actually for anything with multi-word ints

UInt64, Int64, etc have more than one word on 32-bit architectures
This commit is contained in:
Robert Thompson committed 2020-01-29 09:55:10 -05:00
1 parent cc5f7e5d18
commit caeeaaa9dd
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ extension BigInt: BinaryInteger {
self = BigInt._digits[Int(source)]
} else {
words = Words(source.words)
if source > Int.max {
if source.words[source.words.endIndex - 1] > Int.max {
words.append(0)
}
}