summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bitmap.c b/src/core/bitmap.c
index 76fcef67..e9b6d904 100644
--- a/src/core/bitmap.c
+++ b/src/core/bitmap.c
@@ -76,7 +76,7 @@ int bitmap_test ( struct bitmap *bitmap, unsigned int bit ) {
if ( bit >= bitmap->length )
return 0;
- return ( bitmap->blocks[index] & mask );
+ return ( ( bitmap->blocks[index] & mask ) != 0 );
}
/**