summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/os_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/os_file.c b/src/util/os_file.c
index 6e78a231d67..a700f3aada3 100644
--- a/src/util/os_file.c
+++ b/src/util/os_file.c
@@ -72,7 +72,7 @@ os_read_file(const char *filename)
ssize_t actually_read;
size_t offset = 0, remaining = len - 1;
- while ((actually_read = readN(fd, buf + offset, remaining)) == remaining) {
+ while ((actually_read = readN(fd, buf + offset, remaining)) == (ssize_t)remaining) {
char *newbuf = realloc(buf, 2 * len);
if (!newbuf) {
free(buf);