[Python-checkins] CVS: python/dist/src/Objects intobject.c,2.64,2.65

Guido van Rossum gvanrossum@users.sourceforge.net
2001年8月23日 14:32:42 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv2537
Modified Files:
	intobject.c 
Log Message:
err_ovf(): only raise OverflowError when OverflowWarning was raised.
Index: intobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/intobject.c,v
retrieving revision 2.64
retrieving revision 2.65
diff -C2 -d -r2.64 -r2.65
*** intobject.c	2001年08月23日 21:28:33	2.64
--- intobject.c	2001年08月23日 21:32:40	2.65
***************
*** 28,32 ****
 {
 	if (PyErr_Warn(PyExc_OverflowWarning, msg) < 0) {
! 		PyErr_SetString(PyExc_OverflowError, msg);
 		return 1;
 	}
--- 28,33 ----
 {
 	if (PyErr_Warn(PyExc_OverflowWarning, msg) < 0) {
! 		if (PyErr_ExceptionMatches(PyExc_OverflowWarning))
! 			PyErr_SetString(PyExc_OverflowError, msg);
 		return 1;
 	}

AltStyle によって変換されたページ (->オリジナル) /