diff options
author | miod <> | 2023-01-01 16:58:23 +0000 |
---|---|---|
committer | miod <> | 2023-01-01 16:58:23 +0000 |
commit | f26dc18c66c6b61c0b6c189a10eed452b42b84cb (patch) | |
tree | 87b3ec71c4bd04fe71bbba741874c26d099f032e /src | |
parent | 24c47608c0d3d8b3271d14b542d3a1985ade1402 (diff) | |
download | openbsd-f26dc18c66c6b61c0b6c189a10eed452b42b84cb.tar.gz openbsd-f26dc18c66c6b61c0b6c189a10eed452b42b84cb.tar.bz2 openbsd-f26dc18c66c6b61c0b6c189a10eed452b42b84cb.zip |
Add explicit LL suffixes to large constants to appease some compilers on
32-bit platforms; NFCI
ok tb@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time_posix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_posix.c b/src/lib/libcrypto/asn1/a_time_posix.c index 8e138d5213..9327aa8bf0 100644 --- a/src/lib/libcrypto/asn1/a_time_posix.c +++ b/src/lib/libcrypto/asn1/a_time_posix.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time_posix.c,v 1.2 2022/11/08 14:42:42 beck Exp $ */ | 1 | /* $OpenBSD: a_time_posix.c,v 1.3 2023/01/01 16:58:23 miod Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022, Google Inc. | 3 | * Copyright (c) 2022, Google Inc. |
4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> |
@@ -83,7 +83,8 @@ static int | |||
83 | is_valid_epoch_time(int64_t time) | 83 | is_valid_epoch_time(int64_t time) |
84 | { | 84 | { |
85 | /* 0000-01-01 00:00:00 UTC to 9999-12-31 23:59:59 UTC */ | 85 | /* 0000-01-01 00:00:00 UTC to 9999-12-31 23:59:59 UTC */ |
86 | return (int64_t)-62167219200 <= time && time <= (int64_t)253402300799; | 86 | return (int64_t)-62167219200LL <= time && |
87 | time <= (int64_t)253402300799LL; | ||
87 | } | 88 | } |
88 | 89 | ||
89 | /* | 90 | /* |