From: Alan Cox Date: Tue, 13 Sep 2016 21:03:37 +0000 (+0100) Subject: malloc: allow for 16bit int types X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=59d73a675aa7240e6b0ed8179f131c5d38bf3313;p=FUZIX.git malloc: allow for 16bit int types --- diff --git a/Kernel/malloc.c b/Kernel/malloc.c index 00c95d28..a34edda6 100644 --- a/Kernel/malloc.c +++ b/Kernel/malloc.c @@ -26,7 +26,7 @@ struct block size_t length; /* high bit set if used */ }; -#define UNUSED(b) (!((b)->length & (1<<31))) +#define UNUSED(b) (!((b)->length & (1L<<31))) static struct block start = { NULL, sizeof(struct block) };