summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 5e646b9..2f1cbdf 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -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);