#4957: [with patch, needs review] inconsistent integer hashing
------------------------------+---------------------------------------------
Reporter: robertwb | Owner: craigcitro
Type: defect | Status: assigned
Priority: critical | Milestone: sage-3.3
Component: basic arithmetic | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Changes (by craigcitro):
* owner: somebody => craigcitro
* status: new => assigned
* summary: inconsistent integer hashing => [with patch, needs review]
inconsistent integer hashing
* milestone: sage-3.4.1 => sage-3.3
Comment:
This was '''ugly'''. It turns out that we were shifting an `int` to the
right by 45 bits on a 32 bit machine, which one might think would result
in zero, but in fact shifts to the right by `(45%32) = 13` bits.
The attached patch fixes this, and adds some doctests.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4957#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---