Fixed isfree() (bits were reversed)

This commit is contained in:
Bobbi Webber-Manners 2020-02-10 23:05:10 -05:00
parent a5742b8e10
commit 219fa311f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/*