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

Unified Diff: runtime/vm/heap_profiler.cc

Issue 14628009: - Fixed some old-style casts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/vm/debugger.cc ('k') | tools/gyp/configurations.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap_profiler.cc
===================================================================
--- runtime/vm/heap_profiler.cc (revision 22312)
+++ runtime/vm/heap_profiler.cc (working copy)
@@ -336,9 +336,11 @@
uint32_t size = htonl(kObjectIdSize);
Write(&size, sizeof(size));
uint64_t milliseconds = OS::GetCurrentTimeMillis();
- uint32_t hi = htonl((uint32_t)((milliseconds >> 32) & 0x00000000FFFFFFFF));
+ uint32_t hi = htonl(
+ static_cast<uint32_t>((milliseconds >> 32) & 0x00000000FFFFFFFF));
Write(&hi, sizeof(hi));
- uint32_t lo = htonl((uint32_t)(milliseconds & 0x00000000FFFFFFFF));
+ uint32_t lo = htonl(
+ static_cast<uint32_t>(milliseconds & 0x00000000FFFFFFFF));
Write(&lo, sizeof(lo));
}
« no previous file with comments | « runtime/vm/debugger.cc ('k') | tools/gyp/configurations.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698