8000 +1 · python/cpython@c27feaa · GitHub
[go: up one dir, main page]

Skip to content

Commit c27feaa

Browse files
committed
+1
1 parent 2d5e5d1 commit c27feaa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_testcapi/complex.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,14 @@ _py_c_neg(PyObject *Py_UNUSED(module), PyObject *num)
103103
_py_c_##suffix(PyObject *Py_UNUSED(module), PyObject *args) \
104104
{ \
105105
Py_complex num, exp, res; \
106-
PyObject *res; \
107106
\
108107
if (!PyArg_ParseTuple(args, "DD", &num, &exp)) { \
109108
return NULL; \
110109
} \
111110
\
112111
errno = 0; \
113112
res = _Py_c_##suffix(num, exp); \
114-
return Py_BuildValue("Di", res, errno); \
113+
return Py_BuildValue("Di", &res, errno); \
115114
};
116115

117116
_PY_C_FUNC2(sum)

0 commit comments

Comments
 (0)
0