projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da153b4
)
alloc: fix typo which can cause false assertion
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 20 Jul 2010 22:51:08 +0000
(08:21 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 20 Jul 2010 22:51:08 +0000
(08:21 +0930)
ccan/alloc/alloc.c
patch
|
blob
|
history
diff --git
a/ccan/alloc/alloc.c
b/ccan/alloc/alloc.c
index bc3760abc0797d43e10ab1dbed920d28bd501c24..779d5e721e79f303b1f6ff30b017a2bc3b1191bc 100644
(file)
--- 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 */