mirror of https://github.com/python/cpython
SF patch 103543 from tg@freebsd.org:
PyFPE_END_PROTECT() was called on undefined var
This commit is contained in:
parent
42dd01add5
commit
2492a20579
|
@ -278,7 +278,7 @@ convert_to_double(PyObject **v,
|
|||
else if (PyLong_Check(obj)) {
|
||||
PyFPE_START_PROTECT("convert_to_double", {*v=NULL;return -1;})
|
||||
*dbl = PyLong_AsDouble(obj);
|
||||
PyFPE_END_PROTECT(result)
|
||||
PyFPE_END_PROTECT(*dbl)
|
||||
}
|
||||
else {
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
|
|
Loading…
Reference in New Issue