mirror of
https://github.com/bobbimanners/GNO-Extras.git
synced 2024-06-12 06:29:28 +00:00
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 idx = blk / 8;
|
||||||
uint bit = blk % 8;
|
uint bit = blk % 8;
|
||||||
//printf("freelist[%u]=%u\n",idx,freelist[idx]);
|
//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
Block a user