Merge pull request #1800 from ethomson/mingw_warnings

Quiet down some warnings
This commit is contained in:
Russell Belfer 2013-08-19 16:01:30 -07:00
commit 5e1fb2828a

View File

@ -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