Chromium Code Reviews| Index: test/cctest/test-regexp.cc |
| =================================================================== |
| --- test/cctest/test-regexp.cc (revision 10237) |
| +++ test/cctest/test-regexp.cc (working copy) |
| @@ -836,7 +836,8 @@ |
| Handle<Code> code = Handle<Code>::cast(code_object); |
| int captures[4] = {42, 37, 87, 117}; |
| - const uc16 input_data[6] = {'f', 'o', 'o', 'f', 'o', '\xa0'}; |
| + const uc16 input_data[6] = {'f', 'o', 'o', 'f', 'o', |
| + const_cast<uc16>('\xa0')}; |
|
Vyacheslav Egorov (Chromium)
2011/12/12 18:06:17
Why do you need const_cast here? const_cast is for
Tobias Burnus
2011/12/12 21:54:00
True, a static_cast should be sufficient. (In the
|
| Handle<String> input = |
| factory->NewStringFromTwoByte(Vector<const uc16>(input_data, 6)); |
| Handle<SeqTwoByteString> seq_input = Handle<SeqTwoByteString>::cast(input); |
| @@ -856,7 +857,8 @@ |
| CHECK_EQ(-1, captures[2]); |
| CHECK_EQ(-1, captures[3]); |
| - const uc16 input_data2[9] = {'b', 'a', 'r', 'b', 'a', 'r', 'b', 'a', '\xa0'}; |
| + const uc16 input_data2[9] = {'b', 'a', 'r', 'b', 'a', 'r', 'b', 'a', |
| + const_cast<uc16>('\xa0')}; |
|
Vyacheslav Egorov (Chromium)
2011/12/12 18:06:17
Ditto.
|
| input = factory->NewStringFromTwoByte(Vector<const uc16>(input_data2, 9)); |
| seq_input = Handle<SeqTwoByteString>::cast(input); |
| start_adr = seq_input->GetCharsAddress(); |