[pypy-svn] r57566 - pypy/branch/2.5-features/pypy/interpreter
bgola at codespeak.net
bgola at codespeak.net
Thu Aug 21 20:50:11 CEST 2008
Author: bgola
Date: Thu Aug 21 20:50:08 2008
New Revision: 57566
Modified:
pypy/branch/2.5-features/pypy/interpreter/generator.py
Log:
intmask() on next_instr. translating pypy-c (2.5-features) works
Modified: pypy/branch/2.5-features/pypy/interpreter/generator.py
==============================================================================
--- pypy/branch/2.5-features/pypy/interpreter/generator.py (original)
+++ pypy/branch/2.5-features/pypy/interpreter/generator.py Thu Aug 21 20:50:08 2008
@@ -1,6 +1,7 @@
from pypy.interpreter.error import OperationError
from pypy.interpreter.baseobjspace import Wrappable
from pypy.interpreter.gateway import NoneNotWrapped
+from pypy.rlib.rarithmetic import intmask
class GeneratorIterator(Wrappable):
@@ -99,7 +100,7 @@
ec = space.getexecutioncontext()
next_instr = self.frame.handle_operation_error(ec, exception)
- self.frame.last_instr = next_instr - 1
+ self.frame.last_instr = intmask(next_instr - 1)
return self.send_ex(space.w_None, True)
More information about the Pypy-commit
mailing list