diff --git a/src/objects.cc b/src/objects.cc index 42c9d2af85..3d22f40089 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -4190,7 +4190,8 @@ bool String::SlowEquals(String* other) { if (Hash() != other->Hash()) return false; } - if (StringShape(this).IsSequentialAscii() && StringShape(other).IsSequentialAscii()) { + if (StringShape(this).IsSequentialAscii() && + StringShape(other).IsSequentialAscii()) { const char* str1 = SeqAsciiString::cast(this)->GetChars(); const char* str2 = SeqAsciiString::cast(other)->GetChars(); return CompareRawStringContents(Vector(str1, len), diff --git a/src/runtime.cc b/src/runtime.cc index 0705e2c2ad..134fddf114 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -3084,7 +3084,7 @@ static Object* ConvertCaseHelper(String* s, unibrow::uchar chars[Converter::kMaxWidth]; // We can assume that the string is not empty uc32 current = buffer->GetNext(); - for (int i = 0; i < length; ) { + for (int i = 0; i < length;) { bool has_next = buffer->has_more(); uc32 next = has_next ? buffer->GetNext() : 0; int char_length = mapping->get(current, next, chars);