mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Changed uint_least8_t to char in union.
This commit is contained in:
parent
06583f3edf
commit
c68e1e5be7
@ -101,6 +101,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Aligned storage
|
||||
/// LENGTH should be determined in terms of sizeof()
|
||||
///\ingroup alignment
|
||||
//***************************************************************************
|
||||
template <const size_t LENGTH, const size_t ALIGNMENT>
|
||||
@ -174,7 +175,7 @@ namespace etl
|
||||
|
||||
union
|
||||
{
|
||||
uint_least8_t data[LENGTH];
|
||||
char data[LENGTH];
|
||||
typename etl::type_with_alignment<ALIGNMENT>::type __etl_alignment_type__; // A POD type that has the same alignment as ALIGNMENT.
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user