[pypy-svn] r39679 - pypy/dist/pypy/lang/js
santagada at codespeak.net
santagada at codespeak.net
Fri Mar 2 15:04:09 CET 2007
Author: santagada
Date: Fri Mar 2 15:04:05 2007
New Revision: 39679
Modified:
pypy/dist/pypy/lang/js/interpreter.py
Log:
the math here is wrong, waiting for support from rlib
Modified: pypy/dist/pypy/lang/js/interpreter.py
==============================================================================
--- pypy/dist/pypy/lang/js/interpreter.py (original)
+++ pypy/dist/pypy/lang/js/interpreter.py Fri Mar 2 15:04:05 2007
@@ -494,7 +494,7 @@
def decision(self, ctx, op1, op2):
a = op1.ToInt32()
b = op2.ToInt32()
- return W_Number(r_uint(a) >> (r_uint(b) & 0x1F))
+ return W_Number(int(r_uint(a) >> (r_uint(b) & 0x1F)))
class Rsh(BinaryComparisonOp):
opcode = 'RSH'
More information about the Pypy-commit
mailing list