Fixed isfree() (bits were reversed)
This commit is contained in:
parent
a5742b8e10
commit
219fa311f9
|
@ -339,7 +339,7 @@ int isfree(uint blk) {
|
|||
uint idx = blk / 8;
|
||||
uint bit = blk % 8;
|
||||
//printf("freelist[%u]=%u\n",idx,freelist[idx]);
|
||||
return (freelist[idx] >> bit) & 0x01 ? 1 : 0;
|
||||
return (freelist[idx] << bit) & 0x80 ? 1 : 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue