diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index 7f83a7931a..10149149e7 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -366,7 +366,7 @@ AllocationGroup::AddFreeRange(int32 start, int32 blocks) status_t AllocationGroup::Allocate(Transaction& transaction, uint16 start, int32 length) { - ASSERT(start + length <= fNumBits); + ASSERT(start + length <= (int32)fNumBits); // Update the allocation group info // TODO: this info will be incorrect if something goes wrong later @@ -435,7 +435,7 @@ AllocationGroup::Allocate(Transaction& transaction, uint16 start, int32 length) status_t AllocationGroup::Free(Transaction& transaction, uint16 start, int32 length) { - ASSERT(start + length <= fNumBits); + ASSERT(start + length <= (int32)fNumBits); // Update the allocation group info // TODO: this info will be incorrect if something goes wrong later diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h index 01a8a7c9c7..ea98e905ee 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.h @@ -19,7 +19,7 @@ struct check_control; struct check_cookie; -#define DEBUG_ALLOCATION_GROUPS +//#define DEBUG_ALLOCATION_GROUPS class BlockAllocator {