Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9544fc5

Browse files
committed
Squash compiler wng about mixing signed and unsigned in comparison.
1 parent faa7f11 commit 9544fc5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/pyexpat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ conv_content_model(XML_Content * const model,
585585
int i;
586586

587587
if (children != NULL) {
588-
for (i = 0; i < model->numchildren; ++i) {
588+
assert(model->numchildren < INT_MAX);
589+
for (i = 0; i < (int)model->numchildren; ++i) {
589590
PyObject *child = conv_content_model(&model->children[i],
590591
conv_string);
591592
if (child == NULL) {

0 commit comments

Comments
 (0)