From a3c3b518bf8592ed98446ebd8c76dc3f483f2067 Mon Sep 17 00:00:00 2001 From: Joe Newton <> Date: Mon, 24 Feb 2020 14:44:01 -0500 Subject: [PATCH 1/2] Fixed reference to JSON in Decodable protocol method (Decodable is coding-agnostic) --- Sources/Half/Half+Coding.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Half/Half+Coding.swift b/Sources/Half/Half+Coding.swift index b0622cc..6c0a3fa 100644 --- a/Sources/Half/Half+Coding.swift +++ b/Sources/Half/Half+Coding.swift @@ -17,7 +17,7 @@ extension Half: Codable { let float = try container.decode(Float.self) guard float.isInfinite || float.isNaN || abs(float) <= Float(Half.greatestFiniteMagnitude) else { - throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: container.codingPath, debugDescription: "Parsed JSON number \(float) does not fit in \(type(of: self)).")) + throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: container.codingPath, debugDescription: "Parsed number \(float) does not fit in \(type(of: self)).")) } self.init(float) From 94302711cd343668d1aedc1016549aa3843673c2 Mon Sep 17 00:00:00 2001 From: Joe Newton <> Date: Mon, 24 Feb 2020 14:49:02 -0500 Subject: [PATCH 2/2] Increment podspec version --- Half.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Half.podspec b/Half.podspec index d5d4317..60972d4 100644 --- a/Half.podspec +++ b/Half.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Half" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "Swift Half-Precision Floating Point" s.description = <<-DESC A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.