Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 179fa985bb0376d32faf534127cf6826b08ec9e9..eb87488adc78797d0343d9da4d863c06a32ef1d7 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3975,7 +3975,7 @@ class Internals { |
static inline internal::Object** GetRoot(v8::Isolate* isolate, int index) { |
uint8_t* addr = reinterpret_cast<uint8_t*>(isolate) + kIsolateRootsOffset; |
- return &reinterpret_cast<internal::Object**>(addr)[index]; |
+ return reinterpret_cast<internal::Object**>(addr + index * kApiPointerSize); |
} |
template <typename T> |