Unbreak Win64 build.
authorsvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Apr 2013 09:19:00 +0000 (09:19 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Apr 2013 09:19:00 +0000 (09:19 +0000)
Review URL: https://codereview.chromium.org/13976013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14300 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/runtime.cc

index b5295b808b8623b7b10fa15d32ee3458cab6239a..7e7d6d5d585759f01f74b5f9cfef0b5f979669d8 100644 (file)
@@ -825,7 +825,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitialize) {
   ASSERT(byte_length % elementSize == 0);
   size_t length = byte_length / elementSize;
 
-  Handle<Object> length_obj = isolate->factory()->NewNumber(length);
+  Handle<Object> length_obj =
+      isolate->factory()->NewNumber(static_cast<double>(length));
   holder->set_length(*length_obj);
   Handle<ExternalArray> elements =
       isolate->factory()->NewExternalArray(