Fix Windows warnings

This commit is contained in:
Sean Parkinson
2017-04-04 11:19:06 +10:00
parent abaf820537
commit b02a75510e

View File

@@ -5058,7 +5058,7 @@ static int DecodeBasicCaConstraint(byte* input, int sz, DecodedCert* cert)
return ret; return ret;
} }
cert->isCA = ret; cert->isCA = (byte)ret;
/* If there isn't any more data, return. */ /* If there isn't any more data, return. */
if (idx >= (word32)sz) if (idx >= (word32)sz)
@@ -5068,7 +5068,7 @@ static int DecodeBasicCaConstraint(byte* input, int sz, DecodedCert* cert)
if (ret < 0) if (ret < 0)
return ret; return ret;
cert->pathLength = ret; cert->pathLength = (byte)ret;
cert->pathLengthSet = 1; cert->pathLengthSet = 1;
return 0; return 0;
@@ -5684,7 +5684,7 @@ static int DecodeCertExtensions(DecodedCert* cert)
return ret; return ret;
} }
critical = ret; critical = (byte)ret;
} }
/* process the extension based on the OID */ /* process the extension based on the OID */