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
parent fac29c0e7b
commit 5dbae4a29b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

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;
}