Fix the error message produced by binpatch when a mismatch is detected.

develop
Alexander Gavrilov 2012-10-27 15:35:11 +04:00
parent 4c2c6a1911
commit 34f33a8c91
1 changed files with 3 additions and 2 deletions

@ -171,8 +171,9 @@ BinaryPatch::State BinaryPatch::checkState(const patch_byte *ptr, size_t len)
state |= Applied;
else
{
cerr << std::hex << bv.offset << ": " << bv.old_val << " " << bv.new_val
<< ", but currently " << cv << std::dec << endl;
cerr << std::hex << bv.offset << ": "
<< unsigned(bv.old_val) << " " << unsigned(bv.new_val)
<< ", but currently " << unsigned(cv) << std::dec << endl;
return Conflict;
}
}