Skip to content

Commit e2aba8b

Browse files
committed
wildmatch: explicitly cast to int
1 parent 3dd1942 commit e2aba8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wildmatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags)
250250
for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/
251251
if (!p_ch)
252252
return WM_ABORT_ALL;
253-
i = p - s - 1;
253+
i = (int)(p - s - 1);
254254
if (i < 0 || p[-1] != ':') {
255255
/* Didn't find ":]", so treat like a normal set. */
256256
p = s - 2;

0 commit comments

Comments
 (0)