Commit 223ea84e authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Lint...

Review URL: http://codereview.chromium.org/42276

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1522 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 608a99a9
......@@ -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<const char>(str1, len),
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment