Commit dd95fee0 authored by danno@chromium.org's avatar danno@chromium.org

Cast NaN to float in ExternalFloatArray::SetValue.

TBR=mstarzinger@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9419003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10718 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 596a0fa7
......@@ -11757,7 +11757,7 @@ MaybeObject* ExternalUnsignedIntArray::SetValue(uint32_t index, Object* value) {
MaybeObject* ExternalFloatArray::SetValue(uint32_t index, Object* value) {
float cast_value = OS::nan_value();
float cast_value = static_cast<float>(OS::nan_value());
Heap* heap = GetHeap();
if (index < static_cast<uint32_t>(length())) {
if (value->IsSmi()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment