Revision: 5956
Author: [email protected]
Date: Thu Dec  9 05:18:23 2010
Log: Fix cast that fails on Win64.

Review URL: http://codereview.chromium.org/5712001
http://code.google.com/p/v8/source/detail?r=5956

Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Wed Dec  8 08:23:25 2010
+++ /branches/bleeding_edge/src/runtime.cc      Thu Dec  9 05:18:23 2010
@@ -4723,9 +4723,9 @@
   }
   *(write_cursor++) = '"';

-  int final_length =
+  int final_length = static_cast<int>(
       write_cursor - reinterpret_cast<Char*>(
-          new_string->address() + SeqAsciiString::kHeaderSize);
+          new_string->address() + SeqAsciiString::kHeaderSize));
Heap::new_space()->ShrinkStringAtAllocationBoundary<StringType>(new_string, final_length);
   return new_string;

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

Reply via email to