From 3a3a86bcdb7a833b29c7c5d6a4948730d2d7c816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Fri, 28 Sep 2012 13:38:10 +0200 Subject: [PATCH] Fix warning about signed and unsigned comparison --- sparsebundlefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparsebundlefs.cpp b/sparsebundlefs.cpp index 29aef45..cab3cee 100644 --- a/sparsebundlefs.cpp +++ b/sparsebundlefs.cpp @@ -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);