From 2a5ba8b8afc8ca7e5b2487da1281ee66449649ff Mon Sep 17 00:00:00 2001 From: Przemyslaw Zygmunt Date: Fri, 10 Feb 2017 19:19:22 +0100 Subject: [PATCH] Comparison bug fixed. --- SUPLA/SAChannel+CoreDataClass.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUPLA/SAChannel+CoreDataClass.m b/SUPLA/SAChannel+CoreDataClass.m index d48bad6c..681fcd02 100644 --- a/SUPLA/SAChannel+CoreDataClass.m +++ b/SUPLA/SAChannel+CoreDataClass.m @@ -51,7 +51,7 @@ - (BOOL) number:(NSNumber*)n1 isEqualToNumber:(id)n2 { if ( n2 == nil && n1 != nil ) return NO; - if ( [n1 isKindOfClass:[NSNumber class]] == NO || [n2 isKindOfClass:[NSNumber class]] == YES ) + if ( [n1 isKindOfClass:[NSNumber class]] == NO || [n2 isKindOfClass:[NSNumber class]] == NO ) return NO; // is unknown if ( n1 != nil && n2 != nil && [n1 isEqualToNumber:n2] == NO )