From 4884b594330dea41d04d776d14a5cb18d9a354bc Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Tue, 18 Mar 2025 22:31:59 +0100 Subject: Make status implementation more correct wrt type punning --- asl/containers/buffer.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'asl/containers') diff --git a/asl/containers/buffer.hpp b/asl/containers/buffer.hpp index c3d865f..f5ba975 100644 --- a/asl/containers/buffer.hpp +++ b/asl/containers/buffer.hpp @@ -110,7 +110,9 @@ private: constexpr void set_size_inline(isize_t new_size) { ASL_ASSERT(new_size >= 0 && new_size <= kInlineCapacity); - const size_t size_encoded = (load_size_encoded() & size_t{0x00ff'ffff'ffff'ffff}) | (bit_cast(new_size) << 56U); + const size_t size_encoded = + (load_size_encoded() & size_t{0x00ff'ffff'ffff'ffff}) + | (bit_cast(new_size) << 56U); store_size_encoded(size_encoded); } -- cgit