mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
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:
parent
fccd77500f
commit
6d15e0eb89
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue