diff options
Diffstat (limited to 'core/pool_allocator.h')
-rw-r--r-- | core/pool_allocator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pool_allocator.h b/core/pool_allocator.h index cec95c7323..7d77af6266 100644 --- a/core/pool_allocator.h +++ b/core/pool_allocator.h @@ -99,8 +99,9 @@ private: } inline int aligned(int p_size) const { int rem = p_size % align; - if (rem) + if (rem) { p_size += align - rem; + } return p_size; } |