Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index d7302dea3da0eb9c0c5c9ecb9938ffc53df17e62..7c327dd3216ba52fca83318fb5503fc226198bce 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -436,7 +436,7 @@ int StandardFrame::ComputeExpressionsCount() const { |
Address limit = sp(); |
ASSERT(base >= limit); // stack grows downwards |
// Include register-allocated locals in number of expressions. |
- return (base - limit) / kPointerSize; |
+ return static_cast<int>((base - limit) / kPointerSize); |
} |
@@ -466,7 +466,7 @@ Object* JavaScriptFrame::GetParameter(int index) const { |
int JavaScriptFrame::ComputeParametersCount() const { |
Address base = caller_sp() + JavaScriptFrameConstants::kReceiverOffset; |
Address limit = fp() + JavaScriptFrameConstants::kSavedRegistersOffset; |
- return (base - limit) / kPointerSize; |
+ return static_cast<int>((base - limit) / kPointerSize); |
} |