Commit 957f9774 authored by Michael W. Hudson's avatar Michael W. Hudson

Pass a variable that actually exists to PyFPE_END_PROTECT in

float_richcompare.  Reported on c.l.py by Helmut Jarausch.
parent a7befda8
......@@ -390,7 +390,7 @@ float_richcompare(PyObject *v, PyObject *w, int op)
r = i>j;
break;
}
PyFPE_END_PROTECT(a)
PyFPE_END_PROTECT(r)
return PyBool_FromLong(r);
}
......@@ -852,7 +852,7 @@ PyTypeObject PyFloat_Type = {
(printfunc)float_print, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
(cmpfunc)float_compare, /* tp_compare */
0, /* tp_compare */
(reprfunc)float_repr, /* tp_repr */
&float_as_number, /* tp_as_number */
0, /* tp_as_sequence */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment