posix: c_lib_ext: fnmatch: fix llvm warning

The tolower() function takes an int parameter. LLVM compilers generate a
warning if a char is passed instead.

Signed-off-by: Keith Short <keithshort@google.com>
This commit is contained in:
Keith Short
2025-12-28 15:12:29 -07:00
committed by Chris Friedt
parent 53f18035d5
commit b0683aba74

View File

@@ -230,7 +230,7 @@ static int rangematch(const char **pattern, char test, int flags)
}
if (flags & FNM_CASEFOLD) {
c2 = tolower(c2);
c2 = tolower((int)c2);
}
if (c <= test && test <= c2) {