Commit 5e1fb2828a496d70c5c200b01e2fb0062268f468

Russell Belfer 2013-08-19T16:01:30

Merge pull request #1800 from ethomson/mingw_warnings Quiet down some warnings

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/win32/mingw-compat.h b/src/win32/mingw-compat.h
index 97b1cb7..fe0abfb 100644
--- a/src/win32/mingw-compat.h
+++ b/src/win32/mingw-compat.h
@@ -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