X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Falloc%2Falloc.c;h=779d5e721e79f303b1f6ff30b017a2bc3b1191bc;hp=bc3760abc0797d43e10ab1dbed920d28bd501c24;hb=774ce0359d38e0ed4a02a0e50d3c4859e6f6be59;hpb=7f9d956574d30f70d2260f4b7694f481e3765173 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 */