@@ -70,7 +70,7 @@ struct integer_storage : public std::array<sized_unsigned_t<1>, SIZE>
7070 // if the value is signed, fill the target with sign extend bytes
7171 if (std::is_signed_v<T> and (value < static_cast <T>(0 )))
7272 {
73- std::fill (this ->begin (), this ->end (), 0xffu );
73+ std::fill (this ->begin (), this ->end (), 0xffU );
7474 }
7575
7676 // byteswap if the endian is not native
@@ -120,9 +120,9 @@ struct integer_storage : public std::array<sized_unsigned_t<1>, SIZE>
120120
121121 // if the value is signed, fill the target with sign extend bytes
122122 if (std::is_signed_v<T> and
123- ((endianness == std::endian::little ? this ->back () : this ->front ()) & 0x80u ))
123+ ((endianness == std::endian::little ? this ->back () : this ->front ()) & 0x80U ))
124124 {
125- std::fill (value_repr.begin (), value_repr.end (), 0xffu );
125+ std::fill (value_repr.begin (), value_repr.end (), 0xffU );
126126 }
127127
128128 // transfer the bytes to the correct position
@@ -176,7 +176,7 @@ struct integer_storage : public std::array<sized_unsigned_t<1>, SIZE>
176176template <std::endian ENDIAN , std::size_t SIZE , Integral T = sized_unsigned_t <std::bit_ceil(SIZE )>>
177177struct packed_integer
178178{
179- protected:
179+ protected: // NOLINTNEXTLINE(cppcoreguidelines-non-private-member-variables-in-classes)
180180 integer_storage<SIZE > storage;
181181
182182 public:
0 commit comments