aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-04-12 20:37:48 +0000
committerGregory P. Smith <greg@mad-scientist.com>2008-04-12 20:37:48 +0000
commit73bee444ab1ce9f4fb3f165b3cc814901032895e (patch)
treeec16b3ccce1a483ddb5e4adc09b2d89a3642a988 /Modules/bz2module.c
parentDon't offend snake lovers. (diff)
downloadcpython-73bee444ab1ce9f4fb3f165b3cc814901032895e.tar.gz
cpython-73bee444ab1ce9f4fb3f165b3cc814901032895e.tar.bz2
cpython-73bee444ab1ce9f4fb3f165b3cc814901032895e.zip
fix compiler warnings
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 6e5ed1448e8..bbabe101e58 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1064,7 +1064,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
/* we cannot move back, so rewind the stream */
BZ2_bzReadClose(&bzerror, self->fp);
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
if (bzerror != BZ_OK) {
@@ -1080,7 +1080,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
self->fp = BZ2_bzReadOpen(&bzerror, PyFile_AsFile(self->file),
0, 0, NULL, 0);
if (self->fp)
- PyFile_IncUseCount(self->file);
+ PyFile_IncUseCount((PyFileObject *)self->file);
if (bzerror != BZ_OK) {
Util_CatchBZ2Error(bzerror);
goto cleanup;
@@ -1181,7 +1181,7 @@ BZ2File_close(BZ2FileObject *self)
break;
}
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
self->mode = MODE_CLOSED;
@@ -1386,7 +1386,7 @@ BZ2File_init(BZ2FileObject *self, PyObject *args, PyObject *kwargs)
Util_CatchBZ2Error(bzerror);
goto error;
}
- PyFile_IncUseCount(self->file);
+ PyFile_IncUseCount((PyFileObject *)self->file);
self->mode = (mode_char == 'r') ? MODE_READ : MODE_WRITE;
@@ -1422,7 +1422,7 @@ BZ2File_dealloc(BZ2FileObject *self)
break;
}
if (self->fp) {
- PyFile_DecUseCount(self->file);
+ PyFile_DecUseCount((PyFileObject *)self->file);
self->fp = NULL;
}
Util_DropReadAhead(self);