From 778b8ae977c420dfe323b27ed3a1cf3f747f936b Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Sun, 25 Sep 2022 01:35:44 -0700 Subject: [PATCH] [BitSet] Fix decoding an 32-bit architectures --- Sources/BitCollections/Shared/_Word.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) }