commit | f29f0c6a785e0535110afdbdcbe985e6bfc838c1 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Nov 09 04:28:17 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Nov 09 04:28:17 2002 +0000 |
tree | ebfd70c468308cd12b86b0887cfeeed28f5897da | |
parent | 07f075cebb73a96f04ce8747c3b4588571494189 [diff] [blame] |
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to _PyString_Resize to int.
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index 45bffb1..c45de1d 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c
@@ -1480,7 +1480,7 @@ } } - _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs) - totalout); + _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout)); RELEASE_LOCK(self); return ret;