Author: Armin Rigo <[email protected]>
Branch: jit-counter
Changeset: r67779:bd9018c25b45
Date: 2013-10-31 13:55 +0100
http://bitbucket.org/pypy/pypy/changeset/bd9018c25b45/

Log:    Fix for 64-bit

diff --git a/rpython/jit/metainterp/counter.py 
b/rpython/jit/metainterp/counter.py
--- a/rpython/jit/metainterp/counter.py
+++ b/rpython/jit/metainterp/counter.py
@@ -42,7 +42,7 @@
         """Return the index (< self.size) from a hash value.  This truncates
         the hash to 32 bits, and then keep the *highest* remaining bits.
         Be sure that hash is computed correctly."""
-        return intmask(r_uint32(r_uint(hash) >> self.shift))
+        return intmask(r_uint32(r_uint(r_uint32(hash)) >> self.shift))
     get_index._always_inline_ = True
 
     def fetch_next_index(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to