mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
converting a negative bit array to `Int128` lost the sign above the first 64 bits , so `Int128(truncatingIfNeeded: "1" as BitArray)` gave 18446744073709551615 , not -1 , `Int128(exactly:)` gave nil , and `Int128(_:)` trapped . a negative value now starts out as all ones , so the words shifted in keep the sign . the trap message also named `BitArray` as the type it could not convert to , it names the integer type now .