Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 2e457d0e8e5cb8006be69d735fc068730a3aa2d4..9b3fed10d05cc35b7230656dd4ffeb48c050e163 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -18258,7 +18258,8 @@ TEST(ContainsOnlyOneByte) { |
const int aligned_length = length*sizeof(uintptr_t)/sizeof(uint16_t); |
i::SmartArrayPointer<uintptr_t> |
aligned_contents(new uintptr_t[aligned_length]); |
- uint16_t* string_contents = reinterpret_cast<uint16_t*>(*aligned_contents); |
+ uint16_t* string_contents = |
+ reinterpret_cast<uint16_t*>(aligned_contents.get()); |
// Set to contain only one byte. |
for (int i = 0; i < length-1; i++) { |
string_contents[i] = 0x41; |