From b02a75510ecd34b96b824ded74a88c36644985e7 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 4 Apr 2017 11:19:06 +1000 Subject: [PATCH] Fix Windows warnings --- wolfcrypt/src/asn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index d0751d600..3c6dda76d 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -5058,7 +5058,7 @@ static int DecodeBasicCaConstraint(byte* input, int sz, DecodedCert* cert) return ret; } - cert->isCA = ret; + cert->isCA = (byte)ret; /* If there isn't any more data, return. */ if (idx >= (word32)sz) @@ -5068,7 +5068,7 @@ static int DecodeBasicCaConstraint(byte* input, int sz, DecodedCert* cert) if (ret < 0) return ret; - cert->pathLength = ret; + cert->pathLength = (byte)ret; cert->pathLengthSet = 1; return 0; @@ -5684,7 +5684,7 @@ static int DecodeCertExtensions(DecodedCert* cert) return ret; } - critical = ret; + critical = (byte)ret; } /* process the extension based on the OID */