Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 1be4b77f8a9f30de2f9a40e396a40a8fd398a994..81b0d4c12e0585de4fb2dcc9a8faf38d582c0461 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -1813,13 +1813,13 @@ class Sampler::PlatformData : public Malloced { |
context.ContextFlags = CONTEXT_FULL; |
if (GetThreadContext(profiled_thread_, &context) != 0) { |
#if V8_HOST_ARCH_X64 |
- sample.pc = context.Rip; |
- sample.sp = context.Rsp; |
- sample.fp = context.Rbp; |
+ sample.pc = reinterpret_cast<Address>(context.Rip); |
+ sample.sp = reinterpret_cast<Address>(context.Rsp); |
+ sample.fp = reinterpret_cast<Address>(context.Rbp); |
#else |
- sample.pc = context.Eip; |
- sample.sp = context.Esp; |
- sample.fp = context.Ebp; |
+ sample.pc = reinterpret_cast<Address>(context.Eip); |
+ sample.sp = reinterpret_cast<Address>(context.Esp); |
+ sample.fp = reinterpret_cast<Address>(context.Ebp); |
#endif |
sampler_->SampleStack(&sample); |
} |