From: Patrick Steuer Date: Sat, 15 Oct 2016 14:54:52 +0000 (+0200) Subject: Fix strict-warnings build X-Git-Tag: OpenSSL_1_1_0f~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01b30563b97d01477e2ab577a8a268991696c6e1;p=oweals%2Fopenssl.git Fix strict-warnings build crypto/asn1/a_strex.c: Type of width variable in asn1_valid_host function needs to be changed from char to signed char to avoid build error due to '-Werror=type-limits'. Signed-off-by: Patrick Steuer Reviewed-by: Rich Salz Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell CLA: trivial (cherry picked from commit 34657a8da2ead453460d668771984432cc767044) --- diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index 9839f5c76e..1bc06799af 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -601,7 +601,7 @@ int asn1_valid_host(const ASN1_STRING *host) const unsigned char *hostptr = host->data; int type = host->type; int i; - char width = -1; + signed char width = -1; unsigned short chflags = 0, prevchflags; if (type > 0 && type < 31)