[Python-checkins] python/dist/src/Objects floatobject.c, 2.127, 2.128

mwh at users.sourceforge.net mwh at users.sourceforge.net
Thu Feb 26 07:33:12 EST 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14470

Modified Files:
	floatobject.c 
Log Message:
Pass a variable that actually exists to PyFPE_END_PROTECT in
float_richcompare.  Reported on c.l.py by Helmut Jarausch.


Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.127
retrieving revision 2.128
diff -C2 -d -r2.127 -r2.128
*** floatobject.c	19 Feb 2004 19:35:22 -0000	2.127
--- floatobject.c	26 Feb 2004 12:33:09 -0000	2.128
***************
*** 391,395 ****
  		break;
  	}
! 	PyFPE_END_PROTECT(a)
  	return PyBool_FromLong(r);
  }
--- 391,395 ----
  		break;
  	}
! 	PyFPE_END_PROTECT(r)
  	return PyBool_FromLong(r);
  }
***************
*** 853,857 ****
  	0,					/* tp_getattr */
  	0,					/* tp_setattr */
! 	(cmpfunc)float_compare, 		/* tp_compare */
  	(reprfunc)float_repr,			/* tp_repr */
  	&float_as_number,			/* tp_as_number */
--- 853,857 ----
  	0,					/* tp_getattr */
  	0,					/* tp_setattr */
! 	0, 		/* tp_compare */
  	(reprfunc)float_repr,			/* tp_repr */
  	&float_as_number,			/* tp_as_number */




More information about the Python-checkins mailing list