From d60ebe67867014d873b0ec81df0b1db4e91911ca Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 21 Jul 2010 08:21:08 +0930 Subject: [PATCH] alloc: fix typo which can cause false assertion --- ccan/alloc/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/alloc/alloc.c b/ccan/alloc/alloc.c index bc3760ab..779d5e72 100644 --- a/ccan/alloc/alloc.c +++ b/ccan/alloc/alloc.c @@ -359,7 +359,7 @@ void alloc_init(void *pool, unsigned long poolsize) /* FIXME: small pages for last bit? */ /* Split first page into small pages. */ - assert(header_size << (1UL << lp_bits)); + assert(header_size < (1UL << lp_bits)); clear_bit(head->pagesize, 0); /* Skip over page(s) used by header, add rest to free list */ -- 2.39.2