Author: Mark Pearse <[email protected]>
Branch: SpecialisedTuples
Changeset: r49103:12b18053910f
Date: 2011-11-07 11:31 +0100
http://bitbucket.org/pypy/pypy/changeset/12b18053910f/

Log:    (mwp) fix hash so it deals with flaots that are ints properly

diff --git a/pypy/objspace/std/specialisedtupleobject.py 
b/pypy/objspace/std/specialisedtupleobject.py
--- a/pypy/objspace/std/specialisedtupleobject.py
+++ b/pypy/objspace/std/specialisedtupleobject.py
@@ -80,7 +80,8 @@
             x = 0x345678
             z = 2
             for val in [self.val0, self.val1]:
-                y = compute_hash(val)          
+#                y = compute_hash(val)
+                y = space.int_w(space.hash(space.wrap(val)))                   
        
                 x = (x ^ y) * mult
                 z -= 1
                 mult += 82520 + z + z
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to