Author: Tim Felgentreff <[email protected]>
Branch:
Changeset: r518:41c1b605fccf
Date: 2013-12-06 09:51 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/41c1b605fccf/
Log: make sure float hashes are within 31bit
diff --git a/spyvm/model.py b/spyvm/model.py
--- a/spyvm/model.py
+++ b/spyvm/model.py
@@ -355,7 +355,7 @@
return space.w_Float
def gethash(self):
- return compute_hash(self.value)
+ return intmask(compute_hash(self.value)) // 2
def invariant(self):
return isinstance(self.value, float)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit