[pypy-svn] r41023 - pypy/dist/pypy/rpython/lltypesystem
mwh at codespeak.net
mwh at codespeak.net
Thu Mar 22 12:46:52 CET 2007
Author: mwh
Date: Thu Mar 22 12:46:51 2007
New Revision: 41023
Modified:
pypy/dist/pypy/rpython/lltypesystem/opimpl.py
Log:
use the explicit floordiv operator in the floordiv opimpl
Modified: pypy/dist/pypy/rpython/lltypesystem/opimpl.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/opimpl.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/opimpl.py Thu Mar 22 12:46:51 2007
@@ -155,7 +155,7 @@
def op_int_floordiv(x, y):
assert isinstance(x, int)
assert isinstance(y, int)
- r = x/y
+ r = x//y
if x^y < 0 and x%y != 0:
r += 1
return r
@@ -171,7 +171,7 @@
def op_llong_floordiv(x, y):
assert isinstance(x, r_longlong)
assert isinstance(y, r_longlong)
- r = x/y
+ r = x//y
if x^y < 0 and x%y != 0:
r += 1
return r
More information about the Pypy-commit
mailing list