curl_fnmatch: Use int not bool when function returns int
bool in curl internals is unsigned char and should not be used to receive return value from functions returning int - this fails when using IBM VisualAge and Tru64 compilers.
This commit is contained in:
Родитель
d17709da31
Коммит
606b933a4f
|
@ -344,7 +344,7 @@ static int loop(const unsigned char *pattern, const unsigned char *string)
|
|||
else if(*p == '[') {
|
||||
unsigned char *pp = p+1; /* cannot handle with pointer to register */
|
||||
if(setcharset(&pp, charset)) {
|
||||
bool found = FALSE;
|
||||
int found = FALSE;
|
||||
if(charset[(unsigned int)*s])
|
||||
found = TRUE;
|
||||
else if(charset[CURLFNM_ALNUM])
|
||||
|
|
Загрузка…
Ссылка в новой задаче