[pypy-svn] r17539 - pypy/dist/pypy/interpreter/astcompiler
pedronis at codespeak.net
pedronis at codespeak.net
Tue Sep 13 19:23:53 CEST 2005
Author: pedronis
Date: Tue Sep 13 19:23:52 2005
New Revision: 17539
Modified:
pypy/dist/pypy/interpreter/astcompiler/pyassem.py
Log:
remove divmod usage
Modified: pypy/dist/pypy/interpreter/astcompiler/pyassem.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/pyassem.py (original)
+++ pypy/dist/pypy/interpreter/astcompiler/pyassem.py Tue Sep 13 19:23:52 2005
@@ -592,7 +592,8 @@
if arg in begin:
# can only extend argument if backward
offset = begin[arg]
- hi, lo = divmod(offset,65536)
+ hi = offset // 65536
+ lo = offset % 65536
if hi>0:
# extended argument
insts.append( InstrInt("EXTENDED_ARG", hi) )
More information about the Pypy-commit
mailing list