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 1426f4647f6154efc8faebe10f071927ae762dbc..3fceed49ade64e7241ac39ea0cc3928466c26c48 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; |