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

Unified Diff: runtime/vm/object.cc

Issue 616103004: Second attempt at fixing warning on Windows. (Closed) Base URL: http://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.cc
===================================================================
--- runtime/vm/object.cc (revision 40825)
+++ runtime/vm/object.cc (working copy)
@@ -16735,7 +16735,7 @@
const intptr_t used = Used();
if (used == 0) return 0;
const uint32_t digit0 = DigitAt(0);
- return Neg() ? static_cast<uint32_t>(-digit0) : digit0;
+ return Neg() ? static_cast<uint32_t>(-static_cast<int32_t>(digit0)) : digit0;
siva 2014/10/01 00:04:40 The multiple casts does look weird.
}
« 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