summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:06:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:06:42 (GMT)
commit047f3c7ffad1eb30e8b5345d665e3e96062cbd5d (patch)
tree6f5eb8499bfeb47d3e050c9ae052117f457ff4d0 /Modules/bz2module.c
parentc7074386b41c4d38c6e11f614dacb55a312cde42 (diff)
downloadcpython-047f3c7ffad1eb30e8b5345d665e3e96062cbd5d.zip
cpython-047f3c7ffad1eb30e8b5345d665e3e96062cbd5d.tar.gz
cpython-047f3c7ffad1eb30e8b5345d665e3e96062cbd5d.tar.bz2
Fix some Py_ssize_t issues
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index ed329b8..8f4e1d8 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1570,7 +1570,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
}
}
- _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
+ _PyString_Resize(&ret, (Py_ssize_t)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);
return ret;
@@ -1636,7 +1636,7 @@ BZ2Comp_flush(BZ2CompObject *self)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
+ _PyString_Resize(&ret, (Py_ssize_t)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);
return ret;
@@ -1860,7 +1860,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, (int)(BZS_TOTAL_OUT(bzs) - totalout));
+ _PyString_Resize(&ret, (Py_ssize_t)(BZS_TOTAL_OUT(bzs) - totalout));
RELEASE_LOCK(self);
return ret;
@@ -2069,7 +2069,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
+ _PyString_Resize(&ret, (Py_ssize_t)BZS_TOTAL_OUT(bzs));
BZ2_bzCompressEnd(bzs);
return ret;
@@ -2148,7 +2148,7 @@ bz2_decompress(PyObject *self, PyObject *args)
}
if (bzs->avail_out != 0)
- _PyString_Resize(&ret, (int)BZS_TOTAL_OUT(bzs));
+ _PyString_Resize(&ret, (Py_ssize_t)BZS_TOTAL_OUT(bzs));
BZ2_bzDecompressEnd(bzs);
return ret;