Skip to content

Commit

Permalink
Comparison bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawzygmunt committed Feb 10, 2017
1 parent ebdfaf7 commit 2a5ba8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SUPLA/SAChannel+CoreDataClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 2a5ba8b

Please sign in to comment.