summaryrefslogtreecommitdiff
path: root/src/wildmatch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-15 20:45:22 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-24 17:27:23 +0100
commite2aba8bafce422b08507e9218ad2db32fcd40a03 (patch)
tree446b852c6740ba7b8f71d1fb39d65653083bd2d1 /src/wildmatch.c
parent3dd1942bece79fb99f4018ea7b5df7a00056e833 (diff)
downloadlibgit2-e2aba8bafce422b08507e9218ad2db32fcd40a03.tar.gz
wildmatch: explicitly cast to int
Diffstat (limited to 'src/wildmatch.c')
-rw-r--r--src/wildmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wildmatch.c b/src/wildmatch.c
index 865f3f035..a894e4841 100644
--- a/src/wildmatch.c
+++ b/src/wildmatch.c
@@ -250,7 +250,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags)
for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
if (!p_ch)
return WM_ABORT_ALL;
- i = p - s - 1;
+ i = (int)(p - s - 1);
if (i < 0 || p[-1] != ':') {
/* Didn't find ":]", so treat like a normal set. */
p = s - 2;