Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: src/arm/disasm-arm.cc

Issue 2900663002: arm: Fix to pass typed pointer with a cast to %p (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/disasm-arm.cc
diff --git a/src/arm/disasm-arm.cc b/src/arm/disasm-arm.cc
index 0b8fee10f4d2af83e8e04f2b26280893b073252a..8c336c1efebe3d5f45d0fc2b7f4a95465bf44024 100644
--- a/src/arm/disasm-arm.cc
+++ b/src/arm/disasm-arm.cc
@@ -686,7 +686,8 @@ int Decoder::FormatOption(Instruction* instr, const char* format) {
return -1;
}
}
- out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "%p", addr);
+ out_buffer_pos_ += SNPrintF(out_buffer_ + out_buffer_pos_, "%p",
+ static_cast<void*>(addr));
return 1;
}
case 'S':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698