-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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
fix numpy scalar hash for bigendian #285
Conversation
99dc1b9
to
4ab016c
Compare
4ab016c
to
dbe4e5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests pass for me on PPC64.
Co-authored-by: Michał Górny <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor nits, otherwise good to go.
pytools/persistent_dict.py
Outdated
@@ -68,6 +68,9 @@ class RecommendedHashNotFoundWarning(UserWarning): | |||
_HAS_ATTRS = True | |||
|
|||
|
|||
IS_BIGENDIAN = sys.byteorder == "big" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IS_BIGENDIAN = sys.byteorder == "big" | |
_IS_BIGENDIAN = sys.byteorder == "big" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 49820c7
pytools/persistent_dict.py
Outdated
@@ -68,6 +68,9 @@ class RecommendedHashNotFoundWarning(UserWarning): | |||
_HAS_ATTRS = True | |||
|
|||
|
|||
IS_BIGENDIAN = sys.byteorder == "big" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment that this is here so it can be changed by mock testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 0194fc6
Thanks a lot, to you both! |
Fixes #262. Followup of #259, #260, #261.
Reverts #260.
Closes #261.
TODO:
Please squash