From e8ab94682668bb25977ac95af519a39a23f39f0e Mon Sep 17 00:00:00 2001 From: Sandin Date: Wed, 3 Jul 2024 10:39:03 +0200 Subject: [PATCH] fix: build --- Sources/SwiftCBOR/CBOREncodable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftCBOR/CBOREncodable.swift b/Sources/SwiftCBOR/CBOREncodable.swift index dc28eb2..7461b71 100644 --- a/Sources/SwiftCBOR/CBOREncodable.swift +++ b/Sources/SwiftCBOR/CBOREncodable.swift @@ -24,7 +24,7 @@ extension CBOR: CBOREncodable { case let .boolean(b): return b.encode() case .null: return CBOR.encodeNull() case .undefined: return CBOR.encodeUndefined() - case .half(_): return f.encode() + case let .half(h): return h.encode() case let .float(f): return f.encode() case let .double(d): return d.encode() case .break: return CBOR.encodeBreak()