Skip to content

Commit

Permalink
Added missing curly brackets and fixed compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sba1 committed Jan 10, 2013
1 parent 252b240 commit e9bb730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amiga/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e9bb730

Please sign in to comment.