Skip to content

Commit

Permalink
short fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Nov 18, 2023
1 parent 1696f9e commit fdc3a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ extension AnyCodable {
case let uint32 as UInt32:
self = .int(Int(uint32))
case let uint64 as UInt64:
self = .int(Int(uint64))
self = .int(Int(min(uint64, UInt64(Int.max))))
case let float as Float:
self = .double(Double(float))
case let double as Double:
Expand Down

0 comments on commit fdc3a71

Please sign in to comment.