malloc: allow for 16bit int types
authorAlan Cox <alan@linux.intel.com>
Tue, 13 Sep 2016 21:03:37 +0000 (22:03 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 13 Sep 2016 21:03:37 +0000 (22:03 +0100)
Kernel/malloc.c

index 00c95d2..a34edda 100644 (file)
@@ -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) };