]> granicus.if.org Git - python/commitdiff
Squash compiler wng about mixing signed and unsigned in comparison.
authorTim Peters <tim.peters@gmail.com>
Sat, 28 Jul 2001 09:36:36 +0000 (09:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 28 Jul 2001 09:36:36 +0000 (09:36 +0000)
Modules/pyexpat.c

index 9300039d12024429fb62b79499b0d2a4ddd33acc..4bddc4691034b22dd0137f71eeabe941475226d8 100644 (file)
@@ -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) {