Skip to content

Commit fdc3a71

Browse files
committed
short fix
1 parent 1696f9e commit fdc3a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extension AnyCodable {
213213
case let uint32 as UInt32:
214214
self = .int(Int(uint32))
215215
case let uint64 as UInt64:
216-
self = .int(Int(uint64))
216+
self = .int(Int(min(uint64, UInt64(Int.max))))
217217
case let float as Float:
218218
self = .double(Double(float))
219219
case let double as Double:

0 commit comments

Comments
 (0)