Skip to content

Commit 983a141

Browse files
committed
fix Int16 decoder
1 parent ffc9fe6 commit 983a141

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Lookup/Lookup.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ extension Lookup: Codable {
477477
object = try? container.decode(intType)
478478
case let int8Type as Int8.Type:
479479
object = try? container.decode(int8Type)
480+
case let int16Type as Int16.Type:
481+
object = try? container.decode(int16Type)
480482
case let int32Type as Int32.Type:
481483
object = try? container.decode(int32Type)
482484
case let int64Type as Int64.Type:
@@ -517,6 +519,8 @@ extension Lookup: Codable {
517519
try container.encode(intValue)
518520
case let int8Value as Int8:
519521
try container.encode(int8Value)
522+
case let int16Value as Int16:
523+
try container.encode(int16Value)
520524
case let int32Value as Int32:
521525
try container.encode(int32Value)
522526
case let int64Value as Int64:

0 commit comments

Comments
 (0)