This commit is contained in:
rolandreichweinbmw 2025-03-01 18:57:27 +01:00 committed by GitHub
parent acc0b4bb89
commit 4e4f7ddbb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 14 deletions

View File

@ -236,8 +236,8 @@ namespace etl
while (nbits != 0)
{
unsigned char mask_width = static_cast<unsigned char>(etl::min(nbits, bits_available_in_char));
typedef typename etl::make_unsigned<T>::type chunk_t;
typedef typename etl::make_unsigned<T>::type chunk_t;
chunk_t chunk = get_chunk(mask_width);
nbits -= mask_width;
@ -529,7 +529,7 @@ namespace etl
typedef char value_type;
typedef value_type* iterator;
typedef const value_type* const_iterator;
typedef const value_type* const_iterator;
typedef etl::span<value_type> callback_parameter_type;
typedef etl::delegate<void(callback_parameter_type)> callback_type;

View File

@ -351,11 +351,7 @@ namespace etl
}
p_previous = p_link;
if (p_link != ETL_NULLPTR)
{
p_link = p_link->link_type::etl_next;
}
p_link = p_link->link_type::etl_next;
}
return ETL_NULLPTR;

View File

@ -66,11 +66,11 @@ namespace etl
//***********************************
template <typename TDelegate, typename TReturn, typename TParam>
struct call_if_impl
{
{
etl::optional<TReturn> call_if(TParam param)
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);
etl::optional<TReturn> result;
if (d.is_valid())
@ -88,8 +88,8 @@ namespace etl
{
bool call_if()
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);
if (d.is_valid())
{
d();

View File

@ -47,7 +47,6 @@ SOFTWARE.
#include "functional.h"
#include "static_assert.h"
#include "placement_new.h"
#include "algorithm.h"
#include "initializer_list.h"
#include <stddef.h>