| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 20553eb64bc94889c24418fab89dca2eeadf3346..643dc518d57e51378ac97de45d7245f7506cb5d7 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -6754,7 +6754,7 @@ const unibrow::byte* ConsString::ConsStringReadBlock(ReadBlockBuffer* rbb,
|
|
|
| while (true) {
|
| String* left = current->first();
|
| - unsigned left_length = (unsigned)left->length();
|
| + unsigned left_length = static_cast<unsigned>(left->length());
|
| if (left_length > offset &&
|
| (max_chars <= left_length - offset ||
|
| (rbb->capacity <= left_length - offset &&
|
| @@ -7129,7 +7129,7 @@ String* ConsStringIteratorOp::NextLeaf(bool* blew_stack,
|
| if ((type & kStringRepresentationMask) != kConsStringTag) {
|
| // Pop stack so next iteration is in correct place.
|
| Pop();
|
| - unsigned length = (unsigned) string->length();
|
| + unsigned length = static_cast<unsigned>(string->length());
|
| // Could be a flattened ConsString.
|
| if (length == 0) continue;
|
| *length_out = length;
|
| @@ -7147,7 +7147,7 @@ String* ConsStringIteratorOp::NextLeaf(bool* blew_stack,
|
| type = string->map()->instance_type();
|
| if ((type & kStringRepresentationMask) != kConsStringTag) {
|
| AdjustMaximumDepth();
|
| - unsigned length = (unsigned) string->length();
|
| + unsigned length = static_cast<unsigned>(string->length());
|
| ASSERT(length != 0);
|
| *length_out = length;
|
| *type_out = type;
|
| @@ -7171,7 +7171,7 @@ void String::ReadBlockIntoBuffer(String* input,
|
| ReadBlockBuffer* rbb,
|
| unsigned* offset_ptr,
|
| unsigned max_chars) {
|
| - ASSERT(*offset_ptr <= (unsigned)input->length());
|
| + ASSERT(*offset_ptr <= static_cast<unsigned>(input->length()));
|
| if (max_chars == 0) return;
|
|
|
| switch (StringShape(input).representation_tag()) {
|
| @@ -7222,7 +7222,7 @@ const unibrow::byte* String::ReadBlock(String* input,
|
| unsigned capacity,
|
| unsigned* remaining,
|
| unsigned* offset_ptr) {
|
| - ASSERT(*offset_ptr <= (unsigned)input->length());
|
| + ASSERT(*offset_ptr <= static_cast<unsigned>(input->length()));
|
| unsigned chars = input->length() - *offset_ptr;
|
| ReadBlockBuffer rbb(util_buffer, 0, capacity, 0);
|
| const unibrow::byte* answer = ReadBlock(input, &rbb, offset_ptr, chars);
|
| @@ -7238,7 +7238,7 @@ const unibrow::byte* String::ReadBlock(String** raw_input,
|
| unsigned* remaining,
|
| unsigned* offset_ptr) {
|
| Handle<String> input(raw_input);
|
| - ASSERT(*offset_ptr <= (unsigned)input->length());
|
| + ASSERT(*offset_ptr <= static_cast<unsigned>(input->length()));
|
| unsigned chars = input->length() - *offset_ptr;
|
| if (chars > capacity) chars = capacity;
|
| ReadBlockBuffer rbb(util_buffer, 0, capacity, 0);
|
| @@ -7263,7 +7263,7 @@ void ConsString::ConsStringReadBlockIntoBuffer(ReadBlockBuffer* rbb,
|
|
|
| while (true) {
|
| String* left = current->first();
|
| - unsigned left_length = (unsigned)left->length();
|
| + unsigned left_length = static_cast<unsigned>(left->length());
|
| if (left_length > offset &&
|
| max_chars <= left_length - offset) {
|
| // Left hand side only - iterate unless we have reached the bottom of
|
|
|