Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2492a20

Browse files
committed
SF patch 103543 from [email protected]:
PyFPE_END_PROTECT() was called on undefined var
1 parent 42dd01a commit 2492a20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ convert_to_double(PyObject **v,
278278
else if (PyLong_Check(obj)) {
279279
PyFPE_START_PROTECT("convert_to_double", {*v=NULL;return -1;})
280280
*dbl = PyLong_AsDouble(obj);
281-
PyFPE_END_PROTECT(result)
281+
PyFPE_END_PROTECT(*dbl)
282282
}
283283
else {
284284
Py_INCREF(Py_NotImplemented);

0 commit comments

Comments
 (0)