Revert "- fix memory arena allocation alignment for 32 bit systems."

This reverts commit 8f138a42e3.

This gives an assertion failed error in zstring.h with MinGW.
This commit is contained in:
drfrag666 2018-06-03 20:50:04 +02:00
parent fccd77500f
commit 6d15e0eb89

View file

@ -57,14 +57,13 @@ struct FMemArena::Block
//
// RoundPointer
//
// Rounds a pointer up to the size of the largest integral type.
// Rounds a pointer up to a pointer-sized boundary.
//
//==========================================================================
static inline void *RoundPointer(void *ptr)
{
const auto roundsize = std::max(sizeof(void*), sizeof(double));
return (void *)(((size_t)ptr + roundsize - 1) & ~(roundsize - 1));
return (void *)(((size_t)ptr + sizeof(void*) - 1) & ~(sizeof(void*) - 1));
}
//==========================================================================