mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
openssl: fix comparison between signed and unsigned integer expressions
This commit is contained in:
parent
99d708a016
commit
68aac9a831
@ -176,7 +176,7 @@ static const char *SSL_ERROR_to_str(int err)
|
|||||||
"SSL_ERROR_WANT_ASYNC_JOB", /* 10 */
|
"SSL_ERROR_WANT_ASYNC_JOB", /* 10 */
|
||||||
"SSL_ERROR_WANT_EARLY", /* 11 */
|
"SSL_ERROR_WANT_EARLY", /* 11 */
|
||||||
};
|
};
|
||||||
return ((err >= 0 && err < sizeof str / sizeof str[0]) ?
|
return ((err >= 0 && err < (int)(sizeof str / sizeof str[0])) ?
|
||||||
str[err] : "SSL_ERROR unknown");
|
str[err] : "SSL_ERROR unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user