From a0a1bf7fb0617843d4ef133b2a80bb07ea9276c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Oct 2008 15:11:07 +0000 Subject: [PATCH] * Disabled the allocation group check again. * Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28171 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 4 ++-- src/add-ons/kernel/file_systems/bfs/BlockAllocator.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {