diff --git a/src/pool.h b/src/pool.h index 52eb8446..9d302307 100644 --- a/src/pool.h +++ b/src/pool.h @@ -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::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::value>::type dummy; ///< Dummy item to get correct alignment. }; ///< The memory for the pool of objects.