summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-28 09:36:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-28 09:36:36 (GMT)
commit9544fc5027169a8dce9516435d2b127e83680aa8 (patch)
tree636045f7d80d13fbe50d42ed18a1e6994fe84e58 /Modules/pyexpat.c
parentfaa7f116f2660c2dca8c7cc87951d0da691b2258 (diff)
downloadcpython-9544fc5027169a8dce9516435d2b127e83680aa8.zip
cpython-9544fc5027169a8dce9516435d2b127e83680aa8.tar.gz
cpython-9544fc5027169a8dce9516435d2b127e83680aa8.tar.bz2
Squash compiler wng about mixing signed and unsigned in comparison.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 9300039..4bddc46 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -585,7 +585,8 @@ conv_content_model(XML_Content * const model,
int i;
if (children != NULL) {
- for (i = 0; i < model->numchildren; ++i) {
+ assert(model->numchildren < INT_MAX);
+ for (i = 0; i < (int)model->numchildren; ++i) {
PyObject *child = conv_content_model(&model->children[i],
conv_string);
if (child == NULL) {