Commit f29f0c6a authored by Tim Peters's avatar Tim Peters

BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to

_PyString_Resize to int.
parent 07f075ce
......@@ -1480,7 +1480,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
}
}
_PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout);
_PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);
return ret;
......
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