]> granicus.if.org Git - python/commitdiff
BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:28:17 +0000 (04:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:28:17 +0000 (04:28 +0000)
_PyString_Resize to int.

Modules/bz2module.c

index 45bffb16210ab6dcaecd22cdf3a390141b9985d8..c45de1d1145d9a8c8775c8995ebbb7b85dedbc25 100644 (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;