summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/bz2module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index 51d07e6..ab9b184 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1047,7 +1047,7 @@ BZ2File_seek(BZ2FileObject *self, PyObject *args)
/* Before getting here, offset must be set to the number of bytes
* to walk forward. */
for (;;) {
- if (offset-bytesread > buffersize)
+ if ((size_t)offset-bytesread > buffersize)
readsize = buffersize;
else
readsize = offset-bytesread;