Avoid signed vs. unsigned warnings (which are treated like errors on
[openssl.git] / crypto / asn1 / a_gentm.c
index 1aba86d0db73e6be158fc4cd40edab8eb65142b0..85810078681e8c3a7d58ad16fa00c4b391040b1b 100644 (file)
@@ -220,7 +220,7 @@ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,
                return(NULL);
 
        p=(char *)s->data;
-       if ((p == NULL) || (s->length < len))
+       if ((p == NULL) || ((size_t)s->length < len))
                {
                p=OPENSSL_malloc(len);
                if (p == NULL) return(NULL);