summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-08-19 16:01:30 -0700
committerRussell Belfer <rb@github.com>2013-08-19 16:01:30 -0700
commit5e1fb2828a496d70c5c200b01e2fb0062268f468 (patch)
tree84acf710574a0ad13e6657832387200b235a0dc4 /src
parentadf96282624b1528aeca05681c375125487a445d (diff)
parent8255b497b625735acab527f15617daa19f796165 (diff)
downloadlibgit2-5e1fb2828a496d70c5c200b01e2fb0062268f468.tar.gz
Merge pull request #1800 from ethomson/mingw_warnings
Quiet down some warnings
Diffstat (limited to 'src')
-rw-r--r--src/win32/mingw-compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/mingw-compat.h b/src/win32/mingw-compat.h
index 97b1cb71b..fe0abfb54 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