d45d8804be0b9778fff7acb9a400b861ebcc7df4 galt Mon Aug 8 13:54:50 2011 -0700 oops saveEnd should be bits64 diff --git src/lib/udc.c src/lib/udc.c index 5e18ef6..b7346b1 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -1246,31 +1246,31 @@ buf += sizeInBuf; bytesRead += sizeInBuf; start = raEnd; size -= sizeInBuf; file->offset += sizeInBuf; mustLseek(file->fdSparse, start, SEEK_SET); if (size == 0) break; } else { freez(&file->sparseReadAhead); } } - int saveEnd = end; + bits64 saveEnd = end; if (size < READAHEADBUFSIZE) { file->sparseReadAhead = needMem(READAHEADBUFSIZE); file->sparseRAOffset = start; size = READAHEADBUFSIZE; end = start + size; if (end > file->size) { end = file->size; size = end - start; } } /* If we're outside of the window of file we already know is good, then have to