Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1182)

Unified Diff: runtime/vm/object.h

Issue 22381002: Fixes to get Dart VM compiling on Ubuntu 13.04, Debian Wheezy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use array syntax to index into native fields Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698