Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 05d8d28917332c8dd4f3892c5d8e9510032af199..56ff4549da25b5e60f60ab0709172cc1d9aad821 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -632,7 +632,7 @@ void Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame( |
Handle<Object> num = isolate_->factory()->NewNumber(d.value()); |
int index = (info->parameters_count() - 1) - |
- (slot - parameters_top) / kPointerSize; |
+ static_cast<int>(slot - parameters_top) / kPointerSize; |
if (FLAG_trace_deopt) { |
PrintF("Materializing a new heap number %p [%e] in slot %p" |
@@ -648,7 +648,7 @@ void Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame( |
Handle<Object> num = isolate_->factory()->NewNumber(d.value()); |
int index = info->expression_count() - 1 - |
- (slot - expressions_top) / kPointerSize; |
+ static_cast<int>(slot - expressions_top) / kPointerSize; |
if (FLAG_trace_deopt) { |
PrintF("Materializing a new heap number %p [%e] in slot %p" |