Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 984f58d17c90be1826c64696a015a7000c7e230d..76826aa3ca70a705461d7073903793655ea02231 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3884,7 +3884,7 @@ MaybeObject* Heap::CopyCode(Code* code, Vector<byte> reloc_info) { |
Address new_addr = reinterpret_cast<HeapObject*>(result)->address(); |
// Copy header and instructions. |
- CopyBytes(new_addr, old_addr, static_cast<int>(relocation_offset)); |
+ CopyBytes(new_addr, old_addr, static_cast<size_t>(relocation_offset)); |
Michael Starzinger
2013/04/02 13:13:53
The "relocation_offset" is already size_t, no need
|
Code* new_code = Code::cast(result); |
new_code->set_relocation_info(ByteArray::cast(reloc_info_array)); |
@@ -3892,7 +3892,7 @@ MaybeObject* Heap::CopyCode(Code* code, Vector<byte> reloc_info) { |
// Copy patched rinfo. |
CopyBytes(new_code->relocation_start(), |
reloc_info.start(), |
- reloc_info.length()); |
+ static_cast<size_t>(reloc_info.length())); |
// Relocate the copy. |
ASSERT(!isolate_->code_range()->exists() || |