Commit 1545ec50 authored by Christian Heimes's avatar Christian Heimes

silence an overflow warning. slen is smaller than 1MB

parent 013e7ccc
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment