Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index 0d5be45eec39342204952de0d7c487e1c4a83a7b..aeb69b2a6e748927f2c1e264a8c752d269d87e48 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -559,9 +559,9 @@ class Sampler::PlatformData : public Malloced { |
flavor, |
reinterpret_cast<natural_t*>(&state), |
&count) == KERN_SUCCESS) { |
- sample.pc = state.REGISTER_FIELD(ip); |
- sample.sp = state.REGISTER_FIELD(sp); |
- sample.fp = state.REGISTER_FIELD(bp); |
+ sample.pc = reinterpret_cast<Address>(state.REGISTER_FIELD(ip)); |
+ sample.sp = reinterpret_cast<Address>(state.REGISTER_FIELD(sp)); |
+ sample.fp = reinterpret_cast<Address>(state.REGISTER_FIELD(bp)); |
sampler_->SampleStack(&sample); |
} |
thread_resume(profiled_thread_); |