We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5e5d1 commit c27feaaCopy full SHA for c27feaa
Modules/_testcapi/complex.c
@@ -103,15 +103,14 @@ _py_c_neg(PyObject *Py_UNUSED(module), PyObject *num)
103
_py_c_##suffix(PyObject *Py_UNUSED(module), PyObject *args) \
104
{ \
105
Py_complex num, exp, res; \
106
- PyObject *res; \
107
\
108
if (!PyArg_ParseTuple(args, "DD", &num, &exp)) { \
109
return NULL; \
110
} \
111
112
errno = 0; \
113
res = _Py_c_##suffix(num, exp); \
114
- return Py_BuildValue("Di", res, errno); \
+ return Py_BuildValue("Di", &res, errno); \
115
};
116
117
_PY_C_FUNC2(sum)
0 commit comments