diff --git a/deps/v8/src/heap/heap.cc b/deps/v8/src/heap/heap.cc index 0b817e4d6d0c92..8dc77b7accce6c 100644 --- a/deps/v8/src/heap/heap.cc +++ b/deps/v8/src/heap/heap.cc @@ -5082,10 +5082,10 @@ bool Heap::ConfigureHeap(int max_semi_space_size, int max_old_space_size, max_semi_space_size_ = max_semi_space_size * MB; } if (max_old_space_size > 0) { - max_old_generation_size_ = max_old_space_size * MB; + max_old_generation_size_ = static_cast(max_old_space_size) * MB; } if (max_executable_size > 0) { - max_executable_size_ = max_executable_size * MB; + max_executable_size_ = static_cast(max_executable_size) * MB; } // If max space size flags are specified overwrite the configuration. @@ -5093,10 +5093,11 @@ bool Heap::ConfigureHeap(int max_semi_space_size, int max_old_space_size, max_semi_space_size_ = FLAG_max_semi_space_size * MB; } if (FLAG_max_old_space_size > 0) { - max_old_generation_size_ = FLAG_max_old_space_size * MB; + max_old_generation_size_ = + static_cast(FLAG_max_old_space_size) * MB; } if (FLAG_max_executable_size > 0) { - max_executable_size_ = FLAG_max_executable_size * MB; + max_executable_size_ = static_cast(FLAG_max_executable_size) * MB; } if (FLAG_stress_compaction) {