Commit ce1fe3e4 authored by iposva@chromium.org's avatar iposva@chromium.org

- Fix constness in tests.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1569 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1db91bee
......@@ -1341,7 +1341,7 @@ THREADED_TEST(External) {
CHECK_EQ(x, 10);
// Make sure unaligned pointers are wrapped properly.
char* data = "0123456789";
char* data = strdup("0123456789");
Local<v8::External> zero = v8::External::New(&data[0]);
Local<v8::External> one = v8::External::New(&data[1]);
Local<v8::External> two = v8::External::New(&data[2]);
......@@ -1355,6 +1355,7 @@ THREADED_TEST(External) {
CHECK_EQ('2', *char_ptr);
char_ptr = reinterpret_cast<char*>(three->Value());
CHECK_EQ('3', *char_ptr);
free(data);
}
......
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