* Disabled the allocation group check again.
* Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28171 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -366,7 +366,7 @@ AllocationGroup::AddFreeRange(int32 start, int32 blocks)
|
|||||||
status_t
|
status_t
|
||||||
AllocationGroup::Allocate(Transaction& transaction, uint16 start, int32 length)
|
AllocationGroup::Allocate(Transaction& transaction, uint16 start, int32 length)
|
||||||
{
|
{
|
||||||
ASSERT(start + length <= fNumBits);
|
ASSERT(start + length <= (int32)fNumBits);
|
||||||
|
|
||||||
// Update the allocation group info
|
// Update the allocation group info
|
||||||
// TODO: this info will be incorrect if something goes wrong later
|
// 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
|
status_t
|
||||||
AllocationGroup::Free(Transaction& transaction, uint16 start, int32 length)
|
AllocationGroup::Free(Transaction& transaction, uint16 start, int32 length)
|
||||||
{
|
{
|
||||||
ASSERT(start + length <= fNumBits);
|
ASSERT(start + length <= (int32)fNumBits);
|
||||||
|
|
||||||
// Update the allocation group info
|
// Update the allocation group info
|
||||||
// TODO: this info will be incorrect if something goes wrong later
|
// TODO: this info will be incorrect if something goes wrong later
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ struct check_control;
|
|||||||
struct check_cookie;
|
struct check_cookie;
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG_ALLOCATION_GROUPS
|
//#define DEBUG_ALLOCATION_GROUPS
|
||||||
|
|
||||||
|
|
||||||
class BlockAllocator {
|
class BlockAllocator {
|
||||||
|
|||||||
Reference in New Issue
Block a user