Revision: 12899
Author:   [email protected]
Date:     Thu Nov  8 04:53:15 2012
Log:      Fix intptr_t/int32_t casting problem on Win64.

[email protected]

Review URL: https://codereview.chromium.org/11369133
http://code.google.com/p/v8/source/detail?r=12899

Modified:
 /branches/bleeding_edge/src/x64/assembler-x64-inl.h

=======================================
--- /branches/bleeding_edge/src/x64/assembler-x64-inl.h Thu Nov 8 04:18:11 2012 +++ /branches/bleeding_edge/src/x64/assembler-x64-inl.h Thu Nov 8 04:53:15 2012
@@ -223,7 +223,7 @@
   } else if (rmode_ == CODE_AGE_SEQUENCE) {
     if (*pc_ == kCallOpcode) {
       int32_t* p = reinterpret_cast<int32_t*>(pc_ + 1);
-      *p -= delta;  // Relocate entry.
+      *p -= static_cast<int32_t>(delta);  // Relocate entry.
       CPU::FlushICache(p, sizeof(uint32_t));
     }
   }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to