mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-25 04:47:48 +00:00
Implement the Serializer.
This commit is contained in:
1 parent
e6e0c68caf
commit
cf08d29cb0
15 files changed
+7806
-56
No files matched your search
@@ -142,7 +142,8 @@ extension BareItemDecoder: SingleValueDecodingContainer {
|
||||
throw StructuredHeaderError.invalidTypeForItem
|
||||
}
|
||||
|
||||
return T(decimal)
|
||||
// Going via Double is a bit sad. Swift Numerics would help here.
|
||||
return T(Double(decimal))
|
||||
}
|
||||
|
||||
private func _decodeFixedWidthInteger<T: FixedWidthInteger>(_ type: T.Type) throws -> T {
|
||||
|
||||
Reference in new issue
Block a user