diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-01-01 16:58:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-01-01 16:58:24 +0000 |
commit | d80a31a697f2d7d7bbe18341459d084ead7abea4 (patch) | |
tree | 9bd5ef8bea1f1e0600067f8ebbd11280e0485b11 /lib/libcrypto | |
parent | 0253086368593d60a4c33cbfbab75b61dc264e34 (diff) |
Add explicit LL suffixes to large constants to appease some compilers on
32-bit platforms; NFCI
ok tb@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/asn1/a_time_posix.c | 5 |
1 files 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 <beck@obtuse.com> @@ -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; } /* |