Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
wip: Fix hash implementations with more hash
Browse files Browse the repository at this point in the history
  • Loading branch information
boundsj committed Feb 7, 2017
1 parent 2f414f2 commit 1b67069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platform/darwin/src/MGLStyleValue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (BOOL)isEqual:(MGLStyleFunction *)other {
}

- (NSUInteger)hash {
return self.stops.hash + self.interpolationBase;
return self.stops.hash + @(self.interpolationBase).hash;
}

@end
Expand Down Expand Up @@ -163,7 +163,7 @@ - (BOOL)isEqual:(MGLCameraStyleFunction *)other {
}

- (NSUInteger)hash {
return self.interpolationMode + self.stops.hash + self.interpolationBase;
return @(self.interpolationMode).hash + self.stops.hash + @(self.interpolationBase).hash;
}

@end
Expand Down Expand Up @@ -233,7 +233,7 @@ - (BOOL)isEqual:(MGLSourceStyleFunction *)other {
}

- (NSUInteger)hash {
return self.interpolationMode + self.stops.hash + self.attributeName.hash + self.defaultValue.hash + self.interpolationBase;
return @(self.interpolationMode).hash + self.stops.hash + self.attributeName.hash + self.defaultValue.hash + @(self.interpolationBase).hash;
}

@end
Expand Down Expand Up @@ -302,7 +302,7 @@ - (BOOL)isEqual:(MGLCompositeStyleFunction *)other {
}

- (NSUInteger)hash {
return self.interpolationMode + self.stops.hash + self.attributeName.hash + self.interpolationBase;
return @(self.interpolationMode).hash + self.stops.hash + self.attributeName.hash + @(self.interpolationBase).hash;
}

@end

0 comments on commit 1b67069

Please sign in to comment.