This commit is contained in:
Frank Denis 2015-12-29 19:13:48 +01:00
parent 6d9f2cae79
commit 2bd822b1c9

View File

@ -101,7 +101,7 @@ int allocate_memory(block_region **region, uint32_t m_cost) {
memcpy(&memory, &base, sizeof memory); memcpy(&memory, &base, sizeof memory);
#else #else
memory = NULL; memory = NULL;
if (size + 63 < size) { if (memory_size + 63 < memory_size) {
base = NULL; base = NULL;
errno = ENOMEM; errno = ENOMEM;
} else if ((base = malloc(memory_size + 63)) != NULL) { } else if ((base = malloc(memory_size + 63)) != NULL) {