[pypy-svn] pypy default: Fix one compiler warning.

arigo commits-noreply at bitbucket.org
Thu Jan 27 15:53:32 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41393:858b08df4e23
Date: 2011-01-27 15:31 +0100
http://bitbucket.org/pypy/pypy/changeset/858b08df4e23/

Log:	Fix one compiler warning.

diff --git a/pypy/module/cpyext/typeobjectdefs.py b/pypy/module/cpyext/typeobjectdefs.py
--- a/pypy/module/cpyext/typeobjectdefs.py
+++ b/pypy/module/cpyext/typeobjectdefs.py
@@ -3,7 +3,7 @@
 from pypy.module.cpyext.api import cpython_struct, \
     PyVarObjectFields, Py_ssize_t, Py_TPFLAGS_READYING, \
     Py_TPFLAGS_READY, Py_TPFLAGS_HEAPTYPE, \
-    PyTypeObject, PyTypeObjectPtr, PyBufferProcs
+    PyTypeObject, PyTypeObjectPtr, PyBufferProcs, FILEP
 from pypy.module.cpyext.pyobject import PyObject, make_ref, from_ref
 from pypy.module.cpyext.modsupport import PyMethodDef
 
@@ -13,7 +13,7 @@
 
 freefunc = P(FT([rffi.VOIDP_real], Void))
 destructor = P(FT([PyO], Void))
-printfunc = P(FT([PyO, rffi.VOIDP_real, rffi.INT_real], rffi.INT))
+printfunc = P(FT([PyO, FILEP, rffi.INT_real], rffi.INT))
 getattrfunc = P(FT([PyO, rffi.CCHARP], PyO))
 getattrofunc = P(FT([PyO, PyO], PyO))
 setattrfunc = P(FT([PyO, rffi.CCHARP, PyO], rffi.INT_real))


More information about the Pypy-commit mailing list