[pypy-commit] pypy default: Makes no sense to have f_lineno end up by complete chance as a 32-bit int...

arigo noreply at buildbot.pypy.org
Wed Dec 10 19:18:22 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r74886:bc40f87eddfc
Date: 2014-12-10 18:17 +0000
http://bitbucket.org/pypy/pypy/changeset/bc40f87eddfc/

Log:	Makes no sense to have f_lineno end up by complete chance as a
	32-bit int...

diff --git a/pypy/module/cpyext/frameobject.py b/pypy/module/cpyext/frameobject.py
--- a/pypy/module/cpyext/frameobject.py
+++ b/pypy/module/cpyext/frameobject.py
@@ -58,7 +58,7 @@
     w_globals = from_ref(space, py_frame.c_f_globals)
 
     frame = space.FrameClass(space, code, w_globals, outer_func=None)
-    frame.f_lineno = py_frame.c_f_lineno
+    frame.f_lineno = rffi.getintfield(py_frame, 'c_f_lineno')
     w_obj = space.wrap(frame)
     track_reference(space, py_obj, w_obj)
     return w_obj


More information about the pypy-commit mailing list