]> granicus.if.org Git - python/commitdiff
fix _PyObject_CallArg1 compiler warnings (closes #28855)
authorBenjamin Peterson <benjamin@python.org>
Fri, 2 Dec 2016 06:01:32 +0000 (22:01 -0800)
committerBenjamin Peterson <benjamin@python.org>
Fri, 2 Dec 2016 06:01:32 +0000 (22:01 -0800)
Include/abstract.h

index 727d1a8f7b443603e36fb8e899e5dbf2ce2e189e..900ef23932e7b4127df4851c85b4a5edd4c89610 100644 (file)
@@ -341,7 +341,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
     _PyObject_FastCall((func), NULL, 0)
 
 #define _PyObject_CallArg1(func, arg) \
-    _PyObject_FastCall((func), &(arg), 1)
+    _PyObject_FastCall((func), (PyObject **)&(arg), 1)
 
     PyAPI_FUNC(PyObject *) _PyObject_Call_Prepend(PyObject *func,
                                                   PyObject *obj, PyObject *args,