Skip to content

Commit

Permalink
Fix: ULID equality
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Feb 20, 2017
1 parent dc7d292 commit dc5cf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ulid_wrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ - (id)copyWithZone:(NSZone *)zone {
- (BOOL)isEqual:(id)object {
if (![object isKindOfClass:[ULID class]]) return NO;
ULID* other = (ULID*)object;
return self->_ulid == other->_ulid;
return ulid::CompareULIDs(self->_ulid, other->_ulid) == 0;
}

@end

0 comments on commit dc5cf8d

Please sign in to comment.