Commit c7a22ed7 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC/s390: fix compilation error for incompatible types

Change-Id: I4f4c95c92925c8778ce915d5b37517ad6e0a6145
Reviewed-on: https://chromium-review.googlesource.com/c/1286538Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#56748}
parent 30729e82
......@@ -408,7 +408,8 @@ void PPCDebugger::Debug() {
current_heap->ContainsSlow(obj->address())) {
PrintF(" (");
if ((value & 1) == 0) {
PrintF("smi %d", PlatformSmiTagging::SmiToInt(obj));
PrintF("smi %d", PlatformSmiTagging::SmiToInt(
reinterpret_cast<Address>(obj)));
} else {
obj->ShortPrint();
}
......
......@@ -424,7 +424,8 @@ void S390Debugger::Debug() {
Heap* current_heap = sim_->isolate_->heap();
if (((value & 1) == 0) ||
current_heap->ContainsSlow(obj->address())) {
PrintF("(smi %d)", PlatformSmiTagging::SmiToInt(obj));
PrintF("(smi %d)", PlatformSmiTagging::SmiToInt(
reinterpret_cast<Address>(obj)));
} else if (current_heap->Contains(obj)) {
PrintF(" (");
obj->ShortPrint();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment