[pypy-svn] pypy default: Fix a warning (probably): 'PyCFunction' is already a pointer type, not 'PyCFunction*'.
arigo
commits-noreply at bitbucket.org
Thu Jan 27 17:35:17 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41397:c44aac88ff47
Date: 2011-01-27 16:09 +0100
http://bitbucket.org/pypy/pypy/changeset/c44aac88ff47/
Log: Fix a warning (probably): 'PyCFunction' is already a pointer type,
not 'PyCFunction*'.
diff --git a/pypy/module/cpyext/methodobject.py b/pypy/module/cpyext/methodobject.py
--- a/pypy/module/cpyext/methodobject.py
+++ b/pypy/module/cpyext/methodobject.py
@@ -16,7 +16,7 @@
from pypy.rlib.objectmodel import we_are_translated
from pypy.objspace.std.tupleobject import W_TupleObject
-PyCFunction_typedef = rffi.COpaquePtr('PyCFunction')
+PyCFunction_typedef = rffi.COpaquePtr(typedef='PyCFunction')
PyCFunction = lltype.Ptr(lltype.FuncType([PyObject, PyObject], PyObject))
PyCFunctionKwArgs = lltype.Ptr(lltype.FuncType([PyObject, PyObject, PyObject], PyObject))
More information about the Pypy-commit
mailing list