Chromium Code Reviews| Index: runtime/vm/object.h |
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
| index 812607de9731ad3ee0478a4db3203d8be5778c98..1023637b249b71e8f632652b9b2325d2f44d8fe6 100644 |
| --- a/runtime/vm/object.h |
| +++ b/runtime/vm/object.h |
| @@ -5988,9 +5988,7 @@ intptr_t Instance::GetNativeField(Isolate* isolate, int index) const { |
| if (native_fields == TypedData::null()) { |
| return 0; |
| } |
| - intptr_t byte_offset = index * sizeof(intptr_t); |
| - return *reinterpret_cast<intptr_t*>(native_fields->ptr()->data_ + |
| - byte_offset); |
| + return *(reinterpret_cast<intptr_t*>(native_fields->ptr()->data_) + index); |
|
srdjan
2013/08/07 18:36:43
From Slava:
nit: you can use array syntax for thi
|
| } |