mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
merge 3.4 (#23590)
This commit is contained in:
commit
abda8ddd3e
2 changed files with 7 additions and 0 deletions
|
@ -220,6 +220,7 @@ PyFloat_AsDouble(PyObject *op)
|
|||
if (fo == NULL)
|
||||
return -1;
|
||||
if (!PyFloat_Check(fo)) {
|
||||
Py_DECREF(fo);
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"nb_float should return float object");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue