From: Benjamin Peterson Date: Fri, 2 Dec 2016 06:01:32 +0000 (-0800) Subject: fix _PyObject_CallArg1 compiler warnings (closes #28855) X-Git-Tag: v3.7.0a1~1856 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cf9e13f251463568883269911221457b412977a;p=python fix _PyObject_CallArg1 compiler warnings (closes #28855) --- diff --git a/Include/abstract.h b/Include/abstract.h index 727d1a8f7b..900ef23932 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -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,