A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.
[openssl.git] / crypto / asn1 / x_long.c
index c04b192..954d183 100644 (file)
@@ -136,7 +136,7 @@ static int long_c2i(ASN1_VALUE **pval, unsigned char *cont, int len, int utype,
        int neg, i;
        long ltmp;
        unsigned long utmp = 0;
-       if(len > sizeof(long)) {
+       if(len > (int)sizeof(long)) {
                ASN1err(ASN1_F_LONG_C2I, ASN1_R_INTEGER_TOO_LARGE_FOR_LONG);
                return 0;
        }