Repaired signed-vs-unsigned mismatch.

This commit is contained in:
Tim Peters 2002-11-09 04:23:31 +00:00
parent e32280987c
commit a17c0c4509

View 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;