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:
committed by
Chris Friedt
parent
53f18035d5
commit
b0683aba74
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user