Skip to content

Commit

Permalink
Fix adviseOptimalBlock() in #29
Browse files Browse the repository at this point in the history
  • Loading branch information
LubosD committed Jun 10, 2015
1 parent 88b0852 commit 1ac8f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DMGPartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void DMGPartition::adviseOptimalBlock(uint64_t offset, uint64_t& blockStart, uin
// Issue #22: empty areas may be larger than 2**31 (causing bugs in callers).
// Moreover, there is no such thing as "optimal block" in zero-filled areas.
RunType runType = RunType(be(m_table->runs[itRun->second].type));
if (runType == RunType::ZeroFill || runType == RunType::Unknown)
if (runType == RunType::ZeroFill || runType == RunType::Unknown || runType == RunType::Raw)
Reader::adviseOptimalBlock(offset, blockStart, blockEnd);
}

Expand Down

0 comments on commit 1ac8f7f

Please sign in to comment.