* Cast block before shifting, as suggested by Marcus; it shouldn't have any
actual consequences but looks more correct. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26217 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -360,7 +360,7 @@ Volume::_GroupBlockOffset(uint32 blockIndex)
|
||||
if ((fSuperBlock.IncompatibleFeatures()
|
||||
& EXT2_INCOMPATIBLE_FEATURE_META_GROUP) == 0
|
||||
|| blockIndex < fSuperBlock.FirstMetaBlockGroup())
|
||||
return (fFirstDataBlock + blockIndex + 1) << fBlockShift;
|
||||
return off_t(fFirstDataBlock + blockIndex + 1) << fBlockShift;
|
||||
|
||||
panic("meta block");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user