X-Git-Url: https://git.saurik.com/apple/hfs.git/blobdiff_plain/51e135ce018217de5c809f4ac236ef6b6d87ef97..HEAD:/fsck_hfs/dfalib/VolumeBitmapCheck.c?ds=inline diff --git a/fsck_hfs/dfalib/VolumeBitmapCheck.c b/fsck_hfs/dfalib/VolumeBitmapCheck.c index fd1074c..dde1d92 100644 --- a/fsck_hfs/dfalib/VolumeBitmapCheck.c +++ b/fsck_hfs/dfalib/VolumeBitmapCheck.c @@ -706,7 +706,7 @@ int CheckVolumeBitMap(SGlobPtr g, Boolean repair) * them against the on-disk bitmap. */ for (bit = 0; bit < gTotalBits; bit += kBitsPerSegment) { - (void) GetSegmentBitmap(bit, &buffer, kTestingBits); + (void) GetSegmentBitmap((UInt32)bit, &buffer, kTestingBits); /* * When we cross file block boundries read a new block from disk. @@ -1448,7 +1448,7 @@ BMS_GrowNodePool(void) BMS_Node *nodePool; short i; - if (gBMS_PoolCount > kBMS_PoolMax) + if (gBMS_PoolCount >= kBMS_PoolMax) return; nodePool = (BMS_Node *)malloc(sizeof(BMS_Node) * kBMS_NodesPerPool);