Revision: 6179
Author: [email protected]
Date: Wed Jan  5 05:03:21 2011
Log: Change a static_cast to BitCast

Hopefuly this will make the Win32 builder happy

[email protected]
Review URL: http://codereview.chromium.org/6038007
http://code.google.com/p/v8/source/detail?r=6179

Modified:
 /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc Wed Jan 5 04:28:47 2011 +++ /branches/bleeding_edge/src/ia32/code-stubs-ia32.cc Wed Jan 5 05:03:21 2011
@@ -5003,9 +5003,9 @@
   static const int kDeltaToCmpImmediate = 2;
   static const int kDeltaToMov = 8;
   static const int kDeltaToMovImmediate = 9;
-  static const int8_t kCmpEdiImmediateByte1 = static_cast<int8_t>(0x81);
-  static const int8_t kCmpEdiImmediateByte2 = static_cast<int8_t>(0xff);
-  static const int8_t kMovEaxImmediateByte = static_cast<int8_t>(0xb8);
+ static const int8_t kCmpEdiImmediateByte1 = BitCast<int8_t, uint8_t>(0x81); + static const int8_t kCmpEdiImmediateByte2 = BitCast<int8_t, uint8_t>(0xff); + static const int8_t kMovEaxImmediateByte = BitCast<int8_t, uint8_t>(0xb8);

   ExternalReference roots_address = ExternalReference::roots_address();

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

Reply via email to