From 8d68cd13d1d0fa65bac41e51c3155f1fcc5ec899 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2024 01:44:02 +0100 Subject: w --- serialize/packbits.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'serialize') diff --git a/serialize/packbits.cpp b/serialize/packbits.cpp index 23d5fdeb..701cc121 100644 --- a/serialize/packbits.cpp +++ b/serialize/packbits.cpp @@ -9,8 +9,8 @@ namespace { constexpr bool test1() { - constexpr size_t bits[] = { 5, 2, 1, 0 }; - constexpr size_t vals[] = { 8, 3, 1, 0 }; + constexpr size_t bits[] = { 5, 2, 1, 0 }; + constexpr size_t vals[] = { 3, 1, 0 }; constexpr auto S0 = Storage{0b10111011uz}; constexpr auto S1 = Storage{0b00000101uz}; @@ -22,9 +22,9 @@ constexpr bool test1() using P2 = P1::next; using P3 = P2::next; - static_assert(std::is_same_v>); - static_assert(std::is_same_v>); - static_assert(std::is_same_v>); + static_assert(std::is_same_v>); + static_assert(std::is_same_v>); + static_assert(std::is_same_v>); static_assert(S0.advance<5>() == S1.value); static_assert(S1.advance<2>() == S2.value); -- cgit v1.2.3