diff --git a/src/static_libs/fnmatch/fnmatch.c b/src/static_libs/fnmatch/fnmatch.c index c562a95cf6..5c1345538a 100644 --- a/src/static_libs/fnmatch/fnmatch.c +++ b/src/static_libs/fnmatch/fnmatch.c @@ -159,7 +159,7 @@ static int match_bracket(const char *p, int k, int kfold) if (l < 0) return 0; p += l-1; } - if (wc==k || wc==kfold) return !inv; + if (wc==(wchar_t)k || wc==(wchar_t)kfold) return !inv; } return inv; }