silence an overflow warning. slen is smaller than 1MB

This commit is contained in:
Christian Heimes 2013-11-22 00:46:18 +01:00
parent d6dc952e17
commit ba723200ce

View File

@ -835,7 +835,8 @@ xmlparse_Parse(xmlparseobject *self, PyObject *args)
s += MAX_CHUNK_SIZE;
slen -= MAX_CHUNK_SIZE;
}
rc = XML_Parse(self->itself, s, slen, isFinal);
assert(MAX_CHUNK_SIZE < INT_MAX && slen < INT_MAX);
rc = XML_Parse(self->itself, s, (int)slen, isFinal);
done:
if (view.buf != NULL)