summaryrefslogtreecommitdiff
path: root/core/pool_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/pool_allocator.h')
-rw-r--r--core/pool_allocator.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/pool_allocator.h b/core/pool_allocator.h
index 1cc21afb21..7d77af6266 100644
--- a/core/pool_allocator.h
+++ b/core/pool_allocator.h
@@ -60,7 +60,6 @@ private:
};
struct Entry {
-
unsigned int pos = 0;
unsigned int len = 0;
unsigned int lock = 0;
@@ -99,10 +98,10 @@ private:
return p_entry.pos + aligned(p_entry.len);
}
inline int aligned(int p_size) const {
-
int rem = p_size % align;
- if (rem)
+ if (rem) {
p_size += align - rem;
+ }
return p_size;
}