[Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.46,2.47

Tim Peters tim_one@users.sourceforge.net
2001年7月28日 02:36:38 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv15590/python/dist/src/Modules
Modified Files:
	pyexpat.c 
Log Message:
Squash compiler wng about mixing signed and unsigned in comparison.
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.46
retrieving revision 2.47
diff -C2 -d -r2.46 -r2.47
*** pyexpat.c	2001年04月25日 16:01:30	2.46
--- pyexpat.c	2001年07月28日 09:36:36	2.47
***************
*** 586,590 ****
 
 if (children != NULL) {
! for (i = 0; i < model->numchildren; ++i) {
 PyObject *child = conv_content_model(&model->children[i],
 conv_string);
--- 586,591 ----
 
 if (children != NULL) {
! assert(model->numchildren < INT_MAX);
! for (i = 0; i < (int)model->numchildren; ++i) {
 PyObject *child = conv_content_model(&model->children[i],
 conv_string);

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