Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index e2f908d7b2d5879419e1988675084e3ab0a400ad..524dbe671949ebfe2eeeee17f92d15338f846e24 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -74,7 +74,7 @@ const char* V8NameConverter::NameOfAddress(byte* pc) const { |
} |
if (code_ != NULL) { |
- int offs = pc - code_->instruction_start(); |
+ int offs = static_cast<int>(pc - code_->instruction_start()); |
// print as code offset, if it seems reasonable |
if (0 <= offs && offs < code_->instruction_size()) { |
OS::SNPrintF(buffer, "%d (%p)", offs, pc); |
@@ -289,7 +289,7 @@ static int DecodeIt(FILE* f, |
} |
delete it; |
- return pc - begin; |
+ return static_cast<int>(pc - begin); |
} |