if ( filePtr->fcbFileID == kHFSRepairCatalogFileID)
flags |= kEFNoExtOvflwMask;
- result = ExtendFileC ( vcb, filePtr, (bytesToAdd+511)>>9, flags, &actualSectorsAdded );
+ result = ExtendFileC ( vcb, filePtr, (UInt32)((bytesToAdd+511)>>9), flags, &actualSectorsAdded );
ReturnIfError(result);
filePtr->fcbLogicalSize = filePtr->fcbPhysicalSize; // new B-tree looks at fcbEOF
// Zero newly allocated portion of HFS+ private file.
if ( result == noErr )
- result = ZeroFileBlocks( vcb, filePtr, fileSize - actualSectorsAdded, actualSectorsAdded );
+ result = ZeroFileBlocks( vcb, filePtr, (UInt32)(fileSize - actualSectorsAdded), actualSectorsAdded );
}
}
else if ( vcb->vcbSignature == kHFSSigWord )
MarkVCBDirty( vcb );
result = FlushAlternateVolumeControlBlock( vcb, false );
if ( result == noErr )
- result = ZeroFileBlocks( vcb, filePtr, fileSize - actualSectorsAdded, actualSectorsAdded );
+ result = ZeroFileBlocks( vcb, filePtr, (UInt32)(fileSize - actualSectorsAdded), actualSectorsAdded );
}
else if ( filePtr->fcbFileID == kHFSCatalogFileID || filePtr->fcbFileID == kHFSRepairCatalogFileID )
{
MarkVCBDirty( vcb );
result = FlushAlternateVolumeControlBlock( vcb, false );
if ( result == noErr )
- result = ZeroFileBlocks( vcb, filePtr, fileSize - actualSectorsAdded, actualSectorsAdded );
+ result = ZeroFileBlocks( vcb, filePtr, (UInt32)(fileSize - actualSectorsAdded), actualSectorsAdded );
}
}