From 59d73a675aa7240e6b0ed8179f131c5d38bf3313 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 13 Sep 2016 22:03:37 +0100 Subject: [PATCH] malloc: allow for 16bit int types --- Kernel/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }; -- 2.34.1