Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 88527ca6b304d67b6fdd7d317988877da06568d0..d30ef5a133d446aaf030536ce4b13456666e4152 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -393,7 +393,7 @@ class Logger::NameBuffer { |
int previous = unibrow::Utf16::kNoPreviousCharacter; |
for (int i = 0; i < uc16_length && utf8_pos_ < kUtf8BufferSize; ++i) { |
uc16 c = utf16_buffer[i]; |
- if (c <= String::kMaxAsciiCharCodeU) { |
+ if (c <= unibrow::Utf8::kMaxOneByteChar) { |
utf8_buffer_[utf8_pos_++] = static_cast<char>(c); |
} else { |
int char_length = unibrow::Utf8::Length(c, previous); |