From 01e30c8f53353e745ce09f4d416468e4e18fbd89 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 15 May 2025 09:45:23 +0100 Subject: [PATCH] #1096 bit_stream_reader constructors do not accept const pointers --- include/etl/bit_stream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/bit_stream.h b/include/etl/bit_stream.h index 9e0bf598..b4518a75 100644 --- a/include/etl/bit_stream.h +++ b/include/etl/bit_stream.h @@ -1084,7 +1084,7 @@ namespace etl //*************************************************************************** /// Construct from range. //*************************************************************************** - bit_stream_reader(void* begin_, void* end_, etl::endian stream_endianness_) + bit_stream_reader(const void* begin_, const void* end_, etl::endian stream_endianness_) : pdata(reinterpret_cast(begin_)) , length_chars(etl::distance(reinterpret_cast(begin_), reinterpret_cast(end_))) , stream_endianness(stream_endianness_) @@ -1095,7 +1095,7 @@ namespace etl //*************************************************************************** /// Construct from begin and length. //*************************************************************************** - bit_stream_reader(void* begin_, size_t length_, etl::endian stream_endianness_) + bit_stream_reader(const void* begin_, size_t length_, etl::endian stream_endianness_) : pdata(reinterpret_cast(begin_)) , length_chars(length_) , stream_endianness(stream_endianness_)