summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leveldb/util/arena.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leveldb/util/arena.cc b/lib/leveldb/util/arena.cc
index 46e3b2eb..99224447 100644
--- a/lib/leveldb/util/arena.cc
+++ b/lib/leveldb/util/arena.cc
@@ -36,7 +36,7 @@ char* Arena::AllocateFallback(size_t bytes) {
}
char* Arena::AllocateAligned(size_t bytes) {
- const int align = (sizeof(void*) > 8) ? sizeof(void*) : 8;
+ const int align = 4;
static_assert((align & (align - 1)) == 0,
"Pointer size should be a power of 2");
size_t current_mod = reinterpret_cast<uintptr_t>(alloc_ptr_) & (align - 1);