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

Unified Diff: base/profiler/stack_sampling_profiler_unittest.cc

Issue 1325653003: Type change in StackSamplingProfiler from void* to uintptr_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@UMA2_refactor
Patch Set: Nits and compiles. Created 5 years, 3 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
Index: base/profiler/stack_sampling_profiler_unittest.cc
diff --git a/base/profiler/stack_sampling_profiler_unittest.cc b/base/profiler/stack_sampling_profiler_unittest.cc
index d57a151f5e990e6cd94f319a57f1acc91b9b26f8..ad0212c6fa7e4df6ecd2fc2731ec6e08cfd2695a 100644
--- a/base/profiler/stack_sampling_profiler_unittest.cc
+++ b/base/profiler/stack_sampling_profiler_unittest.cc
@@ -183,8 +183,9 @@ Sample::const_iterator FindFirstFrameWithinFunction(
int function_size) {
function_address = MaybeFixupFunctionAddressForILT(function_address);
for (auto it = sample.begin(); it != sample.end(); ++it) {
- if ((it->instruction_pointer >= function_address) &&
- (it->instruction_pointer <
+ if ((reinterpret_cast<const void*>(it->instruction_pointer) >=
+ function_address) &&
+ (reinterpret_cast<const void*>(it->instruction_pointer) <
(static_cast<const unsigned char*>(function_address) + function_size)))
return it;
}
@@ -198,7 +199,7 @@ std::string FormatSampleForDiagnosticOutput(
std::string output;
for (const Frame& frame: sample) {
output += StringPrintf(
- "0x%p %s\n", frame.instruction_pointer,
+ "0x%p %s\n", reinterpret_cast<const void*>(frame.instruction_pointer),
modules[frame.module_index].filename.AsUTF8Unsafe().c_str());
}
return output;

Powered by Google App Engine
This is Rietveld 408576698