0

Fixes for re-enabling more MSVC level 4 warnings: courgette/ edition

This contains fixes for the following sorts of issues:
* Signedness mismatch

BUG=81439
TEST=none

Review URL: https://codereview.chromium.org/371153002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281696 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
pkasting@chromium.org
2014-07-08 08:40:56 +00:00
parent 6d3f32f41a
commit 0ef486bd10
3 changed files with 3 additions and 3 deletions

@ -30,7 +30,7 @@ class DisassemblerElf32 : public Disassembler {
// class encapsulates this behavior. public for use in unit tests.
class TypedRVA {
public:
explicit TypedRVA(RVA rva) : rva_(rva), offset_(-1) {
explicit TypedRVA(RVA rva) : rva_(rva), offset_(static_cast<size_t>(-1)) {
}
virtual ~TypedRVA() { };

@ -215,7 +215,7 @@ uint16 DisassemblerElf32ARM::TypedRVAARM::op_size() const {
case ARM_OFF21:
return 4;
default:
return -1;
return 0xFFFF;
}
}

@ -710,7 +710,7 @@ COMPILE_ASSERT(offsetof(RelocBlockPOD, relocs) == 8, reloc_block_header_size);
class RelocBlock {
public:
RelocBlock() {
pod.page_rva = ~0;
pod.page_rva = 0xFFFFFFFF;
pod.block_size = 8;
}