Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9bb730

Browse files
committed
Added missing curly brackets and fixed compiler warnings.
1 parent 252b240 commit e9bb730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amiga/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
2727
out->data = malloc(len);
2828
GITERR_CHECK_ALLOC(out->data);
2929

30-
if (p_lseek(fd, offset, SEEK_SET) < 0 || p_read(fd, out->data, len) != len)
30+
if ((p_lseek(fd, offset, SEEK_SET) < 0) || ((size_t)p_read(fd, out->data, len) != len)) {
3131
giterr_set(GITERR_OS, "mmap emulation failed");
3232
return -1;
3333
}

0 commit comments

Comments
 (0)