SF patch 103543 from tg@freebsd.org:

PyFPE_END_PROTECT() was called on undefined var
This commit is contained in:
Jeremy Hylton 2001-02-01 23:53:05 +00:00
parent 42dd01add5
commit 2492a20579
1 changed files with 1 additions and 1 deletions

View File

@ -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);