Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252b240 commit e9bb730Copy full SHA for e9bb730
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
27
out->data = malloc(len);
28
GITERR_CHECK_ALLOC(out->data);
29
30
- 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)) {
31
giterr_set(GITERR_OS, "mmap emulation failed");
32
return -1;
33
}
0 commit comments