From 033eadae32009fb41dc67210ad4c6e104751b232 Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 1 Jan 2023 16:58:23 +0000 Subject: [PATCH] Add explicit LL suffixes to large constants to appease some compilers on 32-bit platforms; NFCI ok tb@ --- lib/libcrypto/asn1/a_time_posix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/asn1/a_time_posix.c b/lib/libcrypto/asn1/a_time_posix.c index 8e138d52137..9327aa8bf07 100644 --- a/lib/libcrypto/asn1/a_time_posix.c +++ b/lib/libcrypto/asn1/a_time_posix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_time_posix.c,v 1.2 2022/11/08 14:42:42 beck Exp $ */ +/* $OpenBSD: a_time_posix.c,v 1.3 2023/01/01 16:58:23 miod Exp $ */ /* * Copyright (c) 2022, Google Inc. * Copyright (c) 2022, Bob Beck @@ -83,7 +83,8 @@ static int is_valid_epoch_time(int64_t time) { /* 0000-01-01 00:00:00 UTC to 9999-12-31 23:59:59 UTC */ - return (int64_t)-62167219200 <= time && time <= (int64_t)253402300799; + return (int64_t)-62167219200LL <= time && + time <= (int64_t)253402300799LL; } /* -- 2.20.1