From 87203dc99aeaf3ef50b3df4ac99f2471d06434eb Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 27 Jan 2004 01:16:38 +0000 Subject: [PATCH] Avoid signed vs. unsigned warnings (which are treated like errors on Windows). --- crypto/asn1/a_gentm.c | 2 +- crypto/asn1/a_utctm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/asn1/a_gentm.c b/crypto/asn1/a_gentm.c index 1aba86d0db..8581007868 100644 --- a/crypto/asn1/a_gentm.c +++ b/crypto/asn1/a_gentm.c @@ -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); diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c index 6bc609a905..999852dae5 100644 --- a/crypto/asn1/a_utctm.c +++ b/crypto/asn1/a_utctm.c @@ -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); -- 2.25.1