-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
inconsistent integer hashing #4957
Comments
comment:1
This was ugly. It turns out that we were shifting an The attached patch fixes this, and adds some doctests. |
comment:2
Excellent. I haven't been able to break it, and the code (and comment) look good. |
comment:3
This is broken on 64 bit linux:
|
comment:4
Darn :(. The first two may be OK (we need to see what hash(int(n)) is, but the second one is a problem. |
Attachment: trac-4957.patch.gz |
comment:5
Ok, I fixed it. It turns out it was some sloppy C coding on my part: I really wanted |
comment:6
I bet this is the right fix, could you re-run the tests on a 64 bit machine? |
comment:7
That does the trick on sage.math |
comment:8
Merged in Sage 3.3.alpha3. Cheers, Michael |
This causes problems with looking up values in hashtables...
Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/4957
The text was updated successfully, but these errors were encountered: