]> git.saurik.com Git - apple/hfs.git/blobdiff - fsck_hfs/dfalib/BTreeAllocate.c
hfs-556.100.11.tar.gz
[apple/hfs.git] / fsck_hfs / dfalib / BTreeAllocate.c
index f85a014961221acb0179701428ca2d9853ceb45f..f096887a4008cca91f53a319f3c7cf1441d8f5e7 100644 (file)
@@ -315,7 +315,7 @@ OSStatus    ExtendBTree     (BTreeControlBlockPtr   btreePtr,
        
        //////////////////// Calc New Total Number Of Nodes /////////////////////////
        
-       newTotalNodes = filePtr->fcbLogicalSize / nodeSize;             //¥¥ hack!
+       newTotalNodes = (UInt32)(filePtr->fcbLogicalSize / nodeSize);           //¥¥ hack!
        //¥¥ do we wish to perform any verification of newTotalNodes at this point?
 
        btreePtr->totalNodes = newTotalNodes;           //¥¥ do we need to update freeNodes here too?
@@ -534,7 +534,7 @@ UInt32              CalcMapBits     (BTreeControlBlockPtr    btreePtr)
 {
        UInt32          mapBits;
        
-       mapBits         = M_HeaderMapRecordSize (btreePtr->nodeSize) << 3;
+       mapBits         = (UInt32)(M_HeaderMapRecordSize (btreePtr->nodeSize) << 3);
        
        while (mapBits < btreePtr->totalNodes)
                mapBits += M_MapRecordSize (btreePtr->nodeSize) << 3;