From 1852e022961f28c765810817a6e66b7513a8b4e0 Mon Sep 17 00:00:00 2001 From: Andreas Karlsson Date: Sun, 1 Jun 2025 16:30:43 -0700 Subject: [PATCH] Fix compilation issue --- Sources/FITS/HDU/HEADER/HDUValue.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/FITS/HDU/HEADER/HDUValue.swift b/Sources/FITS/HDU/HEADER/HDUValue.swift index 5d2174d..6336fd5 100644 --- a/Sources/FITS/HDU/HEADER/HDUValue.swift +++ b/Sources/FITS/HDU/HEADER/HDUValue.swift @@ -106,7 +106,7 @@ extension HDUValue { } } - public static func ==(lhs: HDUValue, rhs: T?) -> Bool { + public static func ==(lhs: Self, rhs: T?) -> Bool { guard type(of: lhs) == T.self else { return false } if let right = rhs { return lhs.hashable == right.hashable @@ -115,7 +115,7 @@ extension HDUValue { } } - public static func ==(lhs: T?, rhs: HDUValue) -> Bool { + public static func ==(lhs: T?, rhs: Self) -> Bool { guard T.self == type(of: rhs) else { return false } if let left = lhs { return left.hashable == rhs.hashable @@ -124,12 +124,12 @@ extension HDUValue { } } - public static func ==(lhs: HDUValue, rhs: HDUValue) -> Bool { + public static func ==(lhs: Self, rhs: Self) -> Bool { guard type(of: lhs) == type(of: rhs) else { return false } return lhs.hashable == rhs.hashable } - public static func !=(lhs: HDUValue, rhs: HDUValue) -> Bool { + public static func !=(lhs: Self, rhs: Self) -> Bool { guard type(of: lhs) == type(of: rhs) else { return false } return lhs.hashable != rhs.hashable }