Commit 8255b497b625735acab527f15617daa19f796165

Edward Thomson 2013-08-19T17:49:12

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