Skip to content

Commit

Permalink
init free list tail
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Dec 20, 2011
1 parent da2733c commit b1d9881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buddy.c
Expand Up @@ -25,7 +25,7 @@ buddy_new(int level) {
for (i=1;i<size * 2 - 2;i++) {
self->tree[i].left = i+1;
}
self->tree[size*2-2].left = 0;
self->tree[size*2-2].left = -1;

self->tree[0].left = self->tree[0].right = 0;
return self;
Expand Down

0 comments on commit b1d9881

Please sign in to comment.