Commit 6c1b97d4 authored by Marius Wachtler's avatar Marius Wachtler

Fix wrong if check

parent 56242493
......@@ -91,7 +91,7 @@ class Heap {
void* alloc(size_t bytes) {
//assert(bytes >= 16);
if (bytes == 16)
if (bytes <= 16)
return allocSmall(16, &heads[0], &full_heads[0]);
if (bytes <= 32)
return allocSmall(32, &heads[1], &full_heads[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment