diff options
author | Patrick Steuer <psteuer@mail.de> | 2016-10-15 16:54:52 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-18 17:09:47 +0100 |
commit | 34657a8da2ead453460d668771984432cc767044 (patch) | |
tree | ff654d735f67f2fb0bfb15e1e7a5e63c1e4fba24 /crypto/asn1/a_strex.c | |
parent | cde6145ba19a2fce039cf054a89e49f67c623c59 (diff) |
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 <psteuer@mail.de>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
CLA: trivial
Diffstat (limited to 'crypto/asn1/a_strex.c')
-rw-r--r-- | crypto/asn1/a_strex.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |