[pypy-commit] lang-smalltalk default: make sure float hashes are within 31bit
timfel
noreply at buildbot.pypy.org
Fri Dec 6 17:23:13 CET 2013
Author: Tim Felgentreff <timfelgentreff at gmail.com>
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)
More information about the pypy-commit
mailing list