diff options
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 3 |
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) { |