Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 1257a28d607f6a150909cff4c44ffc4594a3a8aa..537d2a3175ec176843cbea2c92ff1e7970e4b849 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -5999,7 +5999,7 @@ intptr_t Instance::GetNativeField(Isolate* isolate, int index) const { |
if (native_fields == TypedData::null()) { |
return 0; |
} |
- return *(reinterpret_cast<intptr_t*>(native_fields->ptr()->data_) + index); |
+ return reinterpret_cast<intptr_t*>(native_fields->ptr()->data_)[index]; |
} |