mirror of https://github.com/python/cpython
Shut up a compiler warning.
This commit is contained in:
parent
6e751f4ffa
commit
e227263a6c
|
@ -1003,6 +1003,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
cr.real = PyFloat_AsDouble(tmp);
|
cr.real = PyFloat_AsDouble(tmp);
|
||||||
|
cr.imag = 0.0; /* Shut up compiler warning */
|
||||||
Py_DECREF(tmp);
|
Py_DECREF(tmp);
|
||||||
}
|
}
|
||||||
if (i == NULL) {
|
if (i == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue