Pasto
This commit is contained in:
parent
6d9f2cae79
commit
2bd822b1c9
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user