From: Tim Peters Date: Sat, 28 Jul 2001 09:36:36 +0000 (+0000) Subject: Squash compiler wng about mixing signed and unsigned in comparison. X-Git-Tag: v2.2a3~947 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9544fc5027169a8dce9516435d2b127e83680aa8;p=python Squash compiler wng about mixing signed and unsigned in comparison. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 9300039d12..4bddc46910 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) {