Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 1c652f64f16ffb719a9df8cd1bcb1d2df8827f99..399ab092a7edb47c7f7e531ecb73a56807a01231 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5967,7 +5967,7 @@ int Code::SourceStatementPosition(Address pc) { |
uint8_t* Code::GetSafepointEntry(Address pc) { |
SafepointTable table(this); |
- unsigned pc_offset = pc - instruction_start(); |
+ unsigned pc_offset = static_cast<unsigned>(pc - instruction_start()); |
for (unsigned i = 0; i < table.length(); i++) { |
// TODO(kasperl): Replace the linear search with binary search. |
if (table.GetPcOffset(i) == pc_offset) return table.GetEntry(i); |