mescc: Mes C Library: Prepare for M2-Planet: malloc.

* lib/stdlib/malloc.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-05-17 19:29:09 +02:00 committed by Jan Nieuwenhuizen
parent e6d06cc63a
commit cc6d0b10d4
No known key found for this signature in database
GPG Key ID: A781B6A92F5C71D6
1 changed files with 1 additions and 1 deletions

View File

@ -37,6 +37,6 @@ malloc (size_t size)
if (brk (__brk + size) == -1)
return 0;
char *p = __brk;
__brk += size;
__brk = __brk + size;
return p;
}