From 34657a8da2ead453460d668771984432cc767044 Mon Sep 17 00:00:00 2001 From: Patrick Steuer Date: Sat, 15 Oct 2016 16:54:52 +0200 Subject: [PATCH] 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 --- crypto/asn1/a_strex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1