diff options
author | 2014-04-30 19:04:27 -0700 | |
---|---|---|
committer | 2014-05-01 08:31:01 -0700 | |
commit | ff093b31d75658c3404f9b51ee45760f346f06d9 (patch) | |
tree | 16a11ff5a78862defcc169b0af2901360a57ab6a /compiler/dex/quick/gen_invoke.cc | |
parent | b3016551e5f264264dbb633a1ddf03ac97f9c66c (diff) |
Fix a few 64-bit compilation of 32-bit code issues.
Bug: 13423943
Change-Id: I939389413af0a68c0d95b23cd598b7c42afa4383
Diffstat (limited to 'compiler/dex/quick/gen_invoke.cc')
-rw-r--r-- | compiler/dex/quick/gen_invoke.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dex/quick/gen_invoke.cc b/compiler/dex/quick/gen_invoke.cc index 05313a95a0..93a23a6a6e 100644 --- a/compiler/dex/quick/gen_invoke.cc +++ b/compiler/dex/quick/gen_invoke.cc @@ -455,14 +455,14 @@ static int NextSDCallInsn(CompilationUnit* cu, CallInfo* info, if (direct_code != 0 && direct_method != 0) { switch (state) { case 0: // Get the current Method* [sets kArg0] - if (direct_code != static_cast<unsigned int>(-1)) { + if (direct_code != static_cast<uintptr_t>(-1)) { if (cu->instruction_set != kX86 && cu->instruction_set != kX86_64) { cg->LoadConstant(cg->TargetReg(kInvokeTgt), direct_code); } } else if (cu->instruction_set != kX86 && cu->instruction_set != kX86_64) { cg->LoadCodeAddress(target_method, type, kInvokeTgt); } - if (direct_method != static_cast<unsigned int>(-1)) { + if (direct_method != static_cast<uintptr_t>(-1)) { cg->LoadConstant(cg->TargetReg(kArg0), direct_method); } else { cg->LoadMethodAddress(target_method, type, kArg0); @@ -483,7 +483,7 @@ static int NextSDCallInsn(CompilationUnit* cu, CallInfo* info, cg->TargetReg(kArg0)); // Set up direct code if known. if (direct_code != 0) { - if (direct_code != static_cast<unsigned int>(-1)) { + if (direct_code != static_cast<uintptr_t>(-1)) { cg->LoadConstant(cg->TargetReg(kInvokeTgt), direct_code); } else if (cu->instruction_set != kX86 && cu->instruction_set != kX86_64) { CHECK_LT(target_method.dex_method_index, target_method.dex_file->NumMethodIds()); |