From e9bb730c36a9bea6a96b77355f90fabe95fc503d Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 9 Nov 2012 06:02:30 +0100 Subject: [PATCH] Added missing curly brackets and fixed compiler warnings. --- src/amiga/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amiga/map.c b/src/amiga/map.c index 513e2f465..0ba7995c6 100644 --- a/src/amiga/map.c +++ b/src/amiga/map.c @@ -27,7 +27,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs out->data = malloc(len); GITERR_CHECK_ALLOC(out->data); - if (p_lseek(fd, offset, SEEK_SET) < 0 || p_read(fd, out->data, len) != len) + if ((p_lseek(fd, offset, SEEK_SET) < 0) || ((size_t)p_read(fd, out->data, len) != len)) { giterr_set(GITERR_OS, "mmap emulation failed"); return -1; }