]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Repaired signed-vs-unsigned mismatch.
authorTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)
Modules/bz2module.c

index 51d07e699e4770b28fde5101c85430925f91d4aa..ab9b184e0bac4b30b5d0a1293662603fe9fb82cb 100644 (file)
@@ -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;