mirror of
https://github.com/apple/swift-numerics
synced 2026-11-24 04:38:11 +00:00
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:
1 parent
cc5f7e5d18
commit
caeeaaa9dd
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user