diff --git a/README.md b/README.md index b604799..7ac625b 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ Thank to all the contributors, you are the flame burning in our heart ❤️ | ivy-js | [Ivy-js](https://github.com/ivy-js) | Contributor | | gittihub-jpg | [gittihub-jpg](https://github.com/gittihub-jpg) | Contributor | | jesuiskoriel | [Jesuiskoriel](https://github.com/Jesuiskoriel) | Contributor | +| kudasaixc | [Kudasai](https://github.com/kudasaixc) | Contributor & Bug Hunter | diff --git a/src/lib/memory.c b/src/lib/memory.c index ee118e3..e458fb3 100644 --- a/src/lib/memory.c +++ b/src/lib/memory.c @@ -43,7 +43,7 @@ void memory_init(void) { head = (block_header_t *) HEAP_VIRT_START; - head->size = (heap_end = HEAP_VIRT_START) - HEADER_SIZE; + head->size = (heap_end - HEAP_VIRT_START) - HEADER_SIZE; head->free = 1; head->next = NULL; head->prev = NULL;