summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-free-list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-free-list.cpp b/source/core/slang-free-list.cpp
index 0701558aa..4bada9434 100644
--- a/source/core/slang-free-list.cpp
+++ b/source/core/slang-free-list.cpp
@@ -33,7 +33,7 @@ void FreeList::_init(size_t elementSize, size_t alignment, size_t elemsPerBlock)
// Alignment must be a power of 2
assert(((alignment - 1) & alignment) == 0);
- // The elementSize must at least be
+ // The elementSize must at least be at least the same size as the alignment
elementSize = (elementSize >= alignment) ? elementSize : alignment;
m_blockSize = elementSize * elemsPerBlock;
m_elementSize = elementSize;