[pypy-svn] r79692 - pypy/branch/fast-forward/pypy/module/_io
afa at codespeak.net
afa at codespeak.net
Tue Nov 30 17:49:06 CET 2010
Author: afa
Date: Tue Nov 30 17:49:04 2010
New Revision: 79692
Modified:
pypy/branch/fast-forward/pypy/module/_io/interp_textio.py
Log:
Fix a JIT translation issue.
Members with default values defined at the class level should be "simple" types: no longlong, no float.
Modified: pypy/branch/fast-forward/pypy/module/_io/interp_textio.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_io/interp_textio.py (original)
+++ pypy/branch/fast-forward/pypy/module/_io/interp_textio.py Tue Nov 30 17:49:04 2010
@@ -172,7 +172,7 @@
def setstate_w(self, space, w_state):
w_buffer, w_flag = space.unpackiterable(w_state, 2)
flag = space.r_longlong_w(w_flag)
- self.pendingcr = (flag & 1)
+ self.pendingcr = bool(flag & 1)
flag >>= 1
if self.w_decoder and not space.is_w(self.w_decoder, space.w_None):
More information about the Pypy-commit
mailing list