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

Unified Diff: runtime/vm/object_set.h

Issue 609563002: Address MSVS 2013 warning C4146: unary minus operator applied to unsigned type, result still unsign… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_set.h
diff --git a/runtime/vm/object_set.h b/runtime/vm/object_set.h
index 6f687a9663af987907ae5376147e8e83dffbf09f..d48a146e0bf5de571c4df7b78da5634f43de5f55 100644
--- a/runtime/vm/object_set.h
+++ b/runtime/vm/object_set.h
@@ -31,7 +31,7 @@ class ObjectSet {
ASSERT(start_ <= end_);
size_ = SizeFor((end_ - start_) >> kWordSizeLog2);
allocation_ = new uword[size_];
- data_ = &allocation_[-((start >> kWordSizeLog2) / kBitsPerWord)];
+ data_ = &allocation_[0 - ((start >> kWordSizeLog2) / kBitsPerWord)];
koda 2014/09/25 21:31:28 Consider creating a local intptr_t for the express
ASSERT(allocation_ == &data_[(start >> kWordSizeLog2) / kBitsPerWord]);
Clear();
}
« 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