From 68aac9a831172674063dc94a04fd066ba93628ca Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 23 Mar 2017 23:04:38 +0100 Subject: [PATCH] openssl: fix comparison between signed and unsigned integer expressions --- lib/vtls/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 3b34479bb..8eb1e5ab9 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -176,7 +176,7 @@ static const char *SSL_ERROR_to_str(int err) "SSL_ERROR_WANT_ASYNC_JOB", /* 10 */ "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"); }