We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think you want to replace += by = here:
+=
=
https://github.com/SwiftKickMobile/TLIndexPathTools/blob/ca47649036081ec5b1220926ae072dab908301ea/TLIndexPathTools/Data%20Model/TLIndexPathItem.m#L53-57
Right now, you're effectively calculating:
hash = 32 * hash + [self.identifier hash];
The text was updated successfully, but these errors were encountered:
Not sure I follow you. The initial value is hash = 0, so
hash = 0
hash += 31 * hash + [self.identifier hash];
is equivalent to
hash = [self.identifier hash];
and I'm not sure how that is non-ideal.
Sorry, something went wrong.
You're right for line 53 which could be simplified with line 52 to:
NSInteger hash = [self.identifier hash];
The issue is in lines 54 (and 55, 57):
hash += 31 * hash + [self.sectionName hash];
hash = 32 * hash + [self.sectionName hash];
Ah, yeah. Oops
No branches or pull requests
I think you want to replace
+=
by=
here:https://github.com/SwiftKickMobile/TLIndexPathTools/blob/ca47649036081ec5b1220926ae072dab908301ea/TLIndexPathTools/Data%20Model/TLIndexPathItem.m#L53-57
Right now, you're effectively calculating:
The text was updated successfully, but these errors were encountered: