Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r57784:bdee7a1c7e4c
Date: 2012-10-04 19:06 +0200
http://bitbucket.org/pypy/pypy/changeset/bdee7a1c7e4c/

Log:    Issue1277: fix signature of PyCode_GetNumFree().

diff --git a/pypy/module/cpyext/funcobject.py b/pypy/module/cpyext/funcobject.py
--- a/pypy/module/cpyext/funcobject.py
+++ b/pypy/module/cpyext/funcobject.py
@@ -1,6 +1,6 @@
 from pypy.rpython.lltypesystem import rffi, lltype
 from pypy.module.cpyext.api import (
-    PyObjectFields, generic_cpy_call, CONST_STRING, CANNOT_FAIL,
+    PyObjectFields, generic_cpy_call, CONST_STRING, CANNOT_FAIL, Py_ssize_t,
     cpython_api, bootstrap_function, cpython_struct, build_type_checkers)
 from pypy.module.cpyext.pyobject import (
     PyObject, make_ref, from_ref, Py_DecRef, make_typedescr, borrow_from)
@@ -168,7 +168,7 @@
                              freevars=[],
                              cellvars=[]))
 
-@cpython_api([PyObject], rffi.INT_real, error=CANNOT_FAIL)
+@cpython_api([PyCodeObject], Py_ssize_t, error=CANNOT_FAIL)
 def PyCode_GetNumFree(space, w_co):
     """Return the number of free variables in co."""
     co = space.interp_w(PyCode, w_co)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to