Pass a variable that actually exists to PyFPE_END_PROTECT in

float_richcompare.  Reported on c.l.py by Helmut Jarausch.
This commit is contained in:
Michael W. Hudson 2004-02-26 12:33:09 +00:00
parent a7befda8d8
commit 957f9774b6
1 changed files with 2 additions and 2 deletions

View File

@ -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 */