Index: src/perf-jit.cc |
diff --git a/src/perf-jit.cc b/src/perf-jit.cc |
index a8c7255396f6529e190a2d6c407c1728ccfb9f46..23c8cc2fb4c7130397a87bb88999828f36591468 100644 |
--- a/src/perf-jit.cc |
+++ b/src/perf-jit.cc |
@@ -272,7 +272,7 @@ void PerfJitLogger::LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared) { |
static_cast<size_t>(name_length)); |
name_string = std::unique_ptr<char[]>(buffer); |
} |
- DCHECK_EQ(name_length, strlen(name_string.get())); |
+ DCHECK_EQ(name_length, static_cast<int>(strlen(name_string.get()))); |
PerfJitCodeDebugInfo debug_info; |
@@ -356,8 +356,8 @@ void PerfJitLogger::LogWriteUnwindingInfo(Code* code) { |
} |
char padding_bytes[] = "\0\0\0\0\0\0\0\0"; |
- DCHECK_LT(padding_size, sizeof(padding_bytes)); |
- LogWriteBytes(padding_bytes, padding_size); |
+ DCHECK_LT(padding_size, static_cast<int>(sizeof(padding_bytes))); |
+ LogWriteBytes(padding_bytes, static_cast<int>(padding_size)); |
} |
void PerfJitLogger::CodeMoveEvent(AbstractCode* from, Address to) { |