BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to

_PyString_Resize to int.
This commit is contained in:
Tim Peters 2002-11-09 04:28:17 +00:00
parent 07f075cebb
commit f29f0c6a78

View file

@ -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;