Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5fe1f9dc5bcb33a93581e2f2ed100d58cfe5c5f0..dcc76181fe488a0aa27a7c734cb7a5be706df303 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -851,7 +851,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferInitialize) { |
Object* byte_length; |
{ |
MaybeObject* maybe_byte_length = |
- isolate->heap()->NumberFromDouble(allocated_length); |
+ isolate->heap()->NumberFromDouble( |
+ static_cast<double>(allocated_length)); |
if (!maybe_byte_length->ToObject(&byte_length)) return maybe_byte_length; |
} |
CHECK(byte_length->IsSmi() || byte_length->IsHeapNumber()); |