mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Quiet down some warnings
This commit is contained in:
parent
adf9628262
commit
8255b497b6
@ -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