Commits

Anonymous committed d64628c

Squash compiler wng about mixing signed and unsigned in comparison.

Comments (0)

Files changed (1)

Modules/pyexpat.c

     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) {