Avoid signed vs. unsigned warnings (which are treated like errors on
authorRichard Levitte <levitte@openssl.org>
Tue, 27 Jan 2004 01:16:09 +0000 (01:16 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 27 Jan 2004 01:16:09 +0000 (01:16 +0000)
Windows).

crypto/asn1/a_gentm.c
crypto/asn1/a_utctm.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);
index 6bc609a905ade998ca9852354e18bc03ef128e17..999852dae5270086e2066de76d9d07dccb6912de 100644 (file)
@@ -200,7 +200,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
                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);