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

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: Convince gcc that len is always initialized before use. 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
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
}

Powered by Google App Engine
This is Rietveld 408576698