Mercurial > cpython-lru_cache-weakref
diff Modules/bz2module.c @ 26123:cfb317e4a770 legacy-trunk
bz2_compress/bz2_decompress: more casting away LONG_LONG for
_PyString_Resize calls.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sat, 09 Nov 2002 04:33:36 +0000 |
| parents | 3ad4fae9ed3a |
| children | d1d8959b138a |
line wrap: on
line diff
--- a/Modules/bz2module.c Sat Nov 09 04:31:38 2002 +0000 +++ b/Modules/bz2module.c Sat Nov 09 04:33:36 2002 +0000 @@ -1978,7 +1978,7 @@ } if (bzs->avail_out != 0) - _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs)); + _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs)); BZ2_bzCompressEnd(bzs); return ret; @@ -2057,7 +2057,7 @@ } if (bzs->avail_out != 0) - _PyString_Resize(&ret, BZS_TOTAL_OUT(bzs)); + _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs)); BZ2_bzDecompressEnd(bzs); return ret;
