Browse Source

alloc: fix typo which can cause false assertion

Rusty Russell 15 years ago
parent
commit
d60ebe6786
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/alloc/alloc.c

+ 1 - 1
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 */