Fix warning about signed and unsigned comparison

This commit is contained in:
Tor Arne Vestbø
2012-09-28 13:38:10 +02:00
parent 09f2c0e39a
commit 3a3a86bcdb

View File

@@ -100,7 +100,7 @@ static int sparsebundle_read(const char *path, char *buffer, size_t length, off_
log("\tReading band %llu at offet %llu (bytes_read: %zu to_read: %zu\n",
band_number, band_offset, bytes_read, to_read);
size_t read = 0;
ssize_t read = 0;
int band_file = open(band_name, O_RDONLY);
if (band_file != -1) {
read = pread(band_file, buffer + bytes_read, to_read, band_offset);