mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Changed uint32_t Element member to uintptr_t
This commit is contained in:
parent
1b873a0037
commit
94fe515148
@ -77,9 +77,9 @@ namespace etl
|
||||
// The pool element.
|
||||
union Element
|
||||
{
|
||||
uint32_t next; ///< Index of the next free element.
|
||||
char value[sizeof(T)]; ///< Storage for value type.
|
||||
typename etl::type_with_alignment<etl::alignment_of<T>::value>::type dummy; ///< Dummy item to get correct alignment.
|
||||
uintptr_t next; ///< Pointer to the next free element.
|
||||
char value[sizeof(T)]; ///< Storage for value type.
|
||||
typename etl::type_with_alignment<etl::alignment_of<T>::value>::type dummy; ///< Dummy item to get correct alignment.
|
||||
};
|
||||
|
||||
///< The memory for the pool of objects.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user