From e2aba8bafce422b08507e9218ad2db32fcd40a03 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sat, 15 Jun 2019 20:45:22 +0100 Subject: wildmatch: explicitly cast to int --- src/wildmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wildmatch.c') 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; -- cgit v1.2.1