From 219fa311f99c46d6f012534228c2cfde7dd3c3e6 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Mon, 10 Feb 2020 23:05:10 -0500 Subject: [PATCH] Fixed isfree() (bits were reversed) --- bobbi/sortdir.c#b00008 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bobbi/sortdir.c#b00008 b/bobbi/sortdir.c#b00008 index 3312a2f..9f1ca20 100644 --- a/bobbi/sortdir.c#b00008 +++ b/bobbi/sortdir.c#b00008 @@ -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; } /*