diff --git a/Sources/BitCollections/Shared/_Word.swift b/Sources/BitCollections/Shared/_Word.swift index acb258d4f..09278da4f 100644 --- a/Sources/BitCollections/Shared/_Word.swift +++ b/Sources/BitCollections/Shared/_Word.swift @@ -344,7 +344,7 @@ extension Array where Element == _Word { self.reserveCapacity(2 * c) } while !container.isAtEnd { - let v = try container.decode(UInt.self) + let v = try container.decode(UInt64.self) self.append(_Word(UInt(truncatingIfNeeded: v))) self.append(_Word(UInt(truncatingIfNeeded: v &>> 32))) }