Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 15066158abc8af80f1e64f150c80765263a7851d..d923bc04e8cb5ddaa627053a55a2b6f41c31a6d0 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -918,7 +918,7 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { |
List<OffsetRange>* ranges = pc_entry->no_frame_ranges(); |
if (ranges) { |
Code* code = Code::cast(HeapObject::FromAddress(start)); |
- int pc_offset = sample.pc - code->instruction_start(); |
+ int pc_offset = static_cast<int>(sample.pc - code->instruction_start()); |
for (int i = 0; i < ranges->length(); i++) { |
OffsetRange& range = ranges->at(i); |
if (range.from <= pc_offset && pc_offset < range.to) { |