Commit 8255b497 by Edward Thomson

Quiet down some warnings

parent adf96282
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) { GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) {
const char *end = memchr(s, 0, maxlen); const char *end = memchr(s, 0, maxlen);
return end ? (end - s) : maxlen; return end ? (size_t)(end - s) : maxlen;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment