Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index d5417acf17ae696d7f83fc3172ea2c83b6bcaab6..05c302fb99742a3e109c2dfc96ee84bca8f4c9f9 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3999,9 +3999,9 @@ static inline void WriteOneByteData(Vector<const char> vector, uint8_t* chars, |
static inline void WriteTwoByteData(Vector<const char> vector, uint16_t* chars, |
int len) { |
const uint8_t* stream = reinterpret_cast<const uint8_t*>(vector.start()); |
- unsigned stream_length = vector.length(); |
+ size_t stream_length = vector.length(); |
while (stream_length != 0) { |
- unsigned consumed = 0; |
+ size_t consumed = 0; |
uint32_t c = unibrow::Utf8::ValueOf(stream, stream_length, &consumed); |
DCHECK(c != unibrow::Utf8::kBadChar); |
DCHECK(consumed <= stream_length); |