From d184a176443a45335572c0cf61282af0ac0c35ca Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 3 Feb 2023 07:43:08 -0700 Subject: [PATCH] fix warning if ltime is unsigned --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index d10619f88..bd9dbe07f 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -13777,7 +13777,7 @@ int wc_ValidateDate(const byte* date, byte format, int dateType) (void)tmpTime; ltime = wc_Time(0); - if (ltime < 0){ + if (sizeof(ltime) == sizeof(word32) && (int)ltime < 0){ /* A negative response here could be due to a 32-bit time_t * where the year is 2038 or later. */ WOLFSSL_MSG("wc_Time failed to return a valid value");