From 0e6b547396f8814caaebe14a8e254cfaa11c0033 Mon Sep 17 00:00:00 2001 From: Skeets Norquist Date: Mon, 23 Oct 2023 09:32:32 -0700 Subject: [PATCH] Fix sign conversion error (issue 71) https://github.com/OpenCyphal/CETL/issues/71 --- include/cetl/variable_length_array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cetl/variable_length_array.hpp b/include/cetl/variable_length_array.hpp index ae403cba..5c37a043 100644 --- a/include/cetl/variable_length_array.hpp +++ b/include/cetl/variable_length_array.hpp @@ -2336,7 +2336,7 @@ class VariableLengthArray : protected VariableLengthArrayBase 0) { const Storage existing_byte = data_[size_ - 1]; - const std::size_t bit_size_delta = 8U - (last_byte_bit_fill_ + 1); + const std::size_t bit_size_delta = 8U - (last_byte_bit_fill_ + 1U); const Storage existing_bits_mask = static_cast((1U << (last_byte_bit_fill_ + 1U)) - 1U); if (value) { @@ -2420,7 +2420,7 @@ class VariableLengthArray : protected VariableLengthArrayBase