Chromium Code Reviews| Index: runtime/vm/object.h |
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
| index 812607de9731ad3ee0478a4db3203d8be5778c98..c10afbeedbc49d9fbc6b1a7cf6e92ade03105f9a 100644 |
| --- a/runtime/vm/object.h |
| +++ b/runtime/vm/object.h |
| @@ -5989,8 +5989,8 @@ intptr_t Instance::GetNativeField(Isolate* isolate, int index) const { |
| 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*>( |
| + reinterpret_cast<intptr_t>(native_fields->ptr()->data_) + byte_offset); |
|
siva
2013/08/06 22:53:43
Please add a comment here as to why the multiple r
Chris Bracken
2013/08/07 06:12:57
Rewrote with a simpler approach for indexing into
|
| } |