[pypy-commit] pypy py3k-newhash: fix translation
pjenvey
noreply at buildbot.pypy.org
Fri Feb 22 08:37:29 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k-newhash
Changeset: r61585:51531d96fa0e
Date: 2013-02-21 23:36 -0800
http://bitbucket.org/pypy/pypy/changeset/51531d96fa0e/
Log: fix translation
diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py
--- a/pypy/objspace/std/floatobject.py
+++ b/pypy/objspace/std/floatobject.py
@@ -307,7 +307,7 @@
x = ((x << 28) & HASH_MODULUS) | x >> (HASH_BITS - 28)
m *= 268435456.0 # 2**28
e -= 28
- y = int(m) # pull out integer part
+ y = r_uint(m) # pull out integer part
m -= y
x += y
if x >= HASH_MODULUS:
More information about the pypy-commit
mailing list