Skip to content

Fixes an issue with sizeof(int) in hash code calculations - #1741

Closed
YohDeadfall wants to merge 2 commits into
npgsql:devfrom
YohDeadfall:IntSizeInBits
Closed

YohDeadfall wants to merge 2 commits into
npgsql:devfrom
YohDeadfall:IntSizeInBits

Conversation

@YohDeadfall

Copy link
Copy Markdown
Contributor

I've replaced sizeof(int) by a new const called BitsInInt in GetHashCode implementations and in the RotateShift method. This fixes the #1226 issue.

@roji
roji force-pushed the dev branch 3 times, most recently from 5151389 to 8d35b8a Compare February 24, 2018 06:40
@roji
roji force-pushed the dev branch 2 times, most recently from 349e870 to 0fcf927 Compare March 7, 2018 16:26
@roji

roji commented Mar 9, 2018

Copy link
Copy Markdown
Member

Merged via 361fbd0, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants