1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

openssl: fix comparison between signed and unsigned integer expressions

This commit is contained in:
Daniel Stenberg 2017-03-23 23:04:38 +01:00
parent 99d708a016
commit 68aac9a831

View File

@ -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");
} }