| Index: src/regexp-macro-assembler.cc
|
| diff --git a/src/regexp-macro-assembler.cc b/src/regexp-macro-assembler.cc
|
| index ee9347acbb7e2bf0a1d0f0c21ee4f5ff557bff33..f73726a329514b4d2b42a8e62e2cc6aa0f7a4db3 100644
|
| --- a/src/regexp-macro-assembler.cc
|
| +++ b/src/regexp-macro-assembler.cc
|
| @@ -80,11 +80,11 @@ const byte* NativeRegExpMacroAssembler::StringCharacterPosition(
|
| if (subject->IsOneByteRepresentation()) {
|
| const byte* address;
|
| if (StringShape(subject).IsExternal()) {
|
| - const char* data = ExternalAsciiString::cast(subject)->GetChars();
|
| + const uint8_t* data = ExternalAsciiString::cast(subject)->GetChars();
|
| address = reinterpret_cast<const byte*>(data);
|
| } else {
|
| ASSERT(subject->IsSeqOneByteString());
|
| - char* data = SeqOneByteString::cast(subject)->GetChars();
|
| + const uint8_t* data = SeqOneByteString::cast(subject)->GetChars();
|
| address = reinterpret_cast<const byte*>(data);
|
| }
|
| return address + start_index;
|
|
|