Fix arm64 signed char (#1006)

This commit is contained in:
rolandreichweinbmw 2025-01-05 12:42:09 +01:00 committed by John Wellbelove
parent a563aed7fc
commit 8904b91deb
4 changed files with 4 additions and 4 deletions

View File

@ -1075,4 +1075,4 @@ namespace
};
}
#include "etl/private/diagnostic_pop.h"
#include "etl/private/diagnostic_pop.h"

View File

@ -215,7 +215,7 @@ namespace
TEST(test_read_int8_t)
{
std::array<char, 4U> storage = { char(0x80), char(0x5A), char(0xA5), char(0xFF) };
std::array<char, 4U> expected = { int8_t(0x01), int8_t(0x5A), int8_t(0xA5), int8_t(0xFF) };
std::array<signed char, 4U> expected = { int8_t(0x01), int8_t(0x5A), int8_t(0xA5), int8_t(0xFF) };
etl::bit_stream_reader bit_stream(storage.data(), storage.size(), etl::endian::little);

View File

@ -86,7 +86,7 @@ namespace
//*************************************************************************
TEST(test_char_correlation_default_constructor)
{
etl::correlation<etl::correlation_type::Population, char, int32_t> correlation;
etl::correlation<etl::correlation_type::Population, signed char, int32_t> correlation;
double correlation_result = correlation;

View File

@ -86,7 +86,7 @@ namespace
//*************************************************************************
TEST(test_char_covariance_default_constructor)
{
etl::covariance<etl::covariance_type::Population, char, int32_t> covariance;
etl::covariance<etl::covariance_type::Population, signed char, int32_t> covariance;
double covariance_result = covariance;