aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-03-23 23:04:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-03-23 23:04:38 +0100
commit68aac9a831172674063dc94a04fd066ba93628ca (patch)
tree28aebdf3a1ef3c079d547b4a710b6c1e821d439f
parent99d708a0165c1bbcbbcf65c96ecc9e62a9ad629a (diff)
openssl: fix comparison between signed and unsigned integer expressions
-rw-r--r--lib/vtls/openssl.c2
1 files changed, 1 insertions, 1 deletions
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");
}