mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-13 22:35:44 +00:00
Merge pull request #1800 from ethomson/mingw_warnings
Quiet down some warnings
This commit is contained in:
commit
5e1fb2828a
@ -21,7 +21,7 @@
|
||||
|
||||
GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) {
|
||||
const char *end = memchr(s, 0, maxlen);
|
||||
return end ? (end - s) : maxlen;
|
||||
return end ? (size_t)(end - s) : maxlen;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user