From 542d03a49fc5fc8a3aa0bb301973f68b199274e5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 17:34:36 +0100 Subject: a? --- src/timer-test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/timer-test.cpp') diff --git a/src/timer-test.cpp b/src/timer-test.cpp index 36d31b30..5c764da0 100644 --- a/src/timer-test.cpp +++ b/src/timer-test.cpp @@ -4,9 +4,8 @@ namespace floormat { namespace { -constexpr auto MAX = 18446744073709551615u, HALF = 9223372036854775808u; -static_assert(std::is_same_v>); -static_assert(std::is_same_v>); +constexpr uint64_t MAX{18446744073709551615ULL} , HALF{9223372036854775808ULL}; +static_assert(sizeof MAX == 8); static_assert(MAX == (uint64_t)-1); static_assert(HALF + (HALF - 1) == MAX); static_assert(MAX - HALF == HALF - 1); -- cgit v1.2.3