CID 712421: Missed some other occurrences, fixed them as well.

This commit is contained in:
Alex Smith 2013-03-22 11:45:13 +00:00
parent ee8f0ab0dc
commit 27aafb14d7

View File

@ -1491,11 +1491,11 @@ Inode::FindBlockRun(off_t pos, block_run& run, off_t& offset)
if (indirect[current].IsZero())
break;
runBlockEnd += indirect[current].Length()
runBlockEnd += (uint32)indirect[current].Length()
<< cached.BlockShift();
if (runBlockEnd > pos) {
run = indirect[current];
offset = runBlockEnd - (run.Length()
offset = runBlockEnd - ((uint32)run.Length()
<< cached.BlockShift());
return fVolume->ValidateBlockRun(run);
}