Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 911ebd245c0dfd2e0b8c48414dbe794c09630885..8cb7ab504c9ed24a0486c30cacfe466c30760a97 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -469,7 +469,7 @@ class Logger::NameBuffer { |
for (int i = 0; i < uc16_length && utf8_pos_ < kUtf8BufferSize; ++i) { |
uc16 c = uc16_buffer_[i]; |
if (c <= String::kMaxAsciiCharCodeU) { |
- utf8_buffer_[utf8_pos_++] = c; |
+ utf8_buffer_[utf8_pos_++] = static_cast<char>(c); |
} else { |
int char_length = unibrow::Utf8::Length(c); |
if (utf8_pos_ + char_length > kUtf8BufferSize) break; |