[pypy-commit] pypy cffi-1.0: fixes (test_recompiler.py)

arigo noreply at buildbot.pypy.org
Sun May 17 20:21:58 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r77359:2416b4f2d89a
Date: 2015-05-17 19:53 +0200
http://bitbucket.org/pypy/pypy/changeset/2416b4f2d89a/

Log:	fixes (test_recompiler.py)

diff --git a/pypy/module/_cffi_backend/lib_obj.py b/pypy/module/_cffi_backend/lib_obj.py
--- a/pypy/module/_cffi_backend/lib_obj.py
+++ b/pypy/module/_cffi_backend/lib_obj.py
@@ -113,7 +113,8 @@
                   op == cffi_opcode.OP_ENUM):
                 # A constant integer whose value, in an "unsigned long long",
                 # is obtained by calling the function at g->address
-                w_result = realize_c_type.realize_global_int(self.ffi, g)
+                w_result = realize_c_type.realize_global_int(self.ffi, g,
+                                                             index)
                 #
             elif op == cffi_opcode.OP_CONSTANT:
                 # A constant which is not of integer type
@@ -122,7 +123,6 @@
                 fetch_funcptr = rffi.cast(
                     realize_c_type.FUNCPTR_FETCH_CHARP,
                     g.c_address)
-                xxxxxxxxxxxxxxxxxxxx
                 assert w_ct.size > 0
                 with lltype.scoped_alloc(rffi.CCHARP.TO, w_ct.size) as ptr:
                     fetch_funcptr(ptr)


More information about the pypy-commit mailing list