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

Unified Diff: util/misc/clock_test.cc

Issue 807653002: win: static_cast to uint64_t rather than implicit_cast, to avoid warnings (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@in_range_cast
Patch Set: use static_cast instead Created 6 years 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: util/misc/clock_test.cc
diff --git a/util/misc/clock_test.cc b/util/misc/clock_test.cc
index d06afd6728aa196ca1e3de1ab9e2996aa6e1b6a3..ffc5e4943a260c1f374c615ef2713275d5ea64f7 100644
--- a/util/misc/clock_test.cc
+++ b/util/misc/clock_test.cc
@@ -69,13 +69,13 @@ TEST(Clock, SleepNanoseconds) {
const uint64_t kTestData[] = {
0,
1,
- implicit_cast<uint64_t>(1E3), // 1 microsecond
- implicit_cast<uint64_t>(1E4), // 10 microseconds
- implicit_cast<uint64_t>(1E5), // 100 microseconds
- implicit_cast<uint64_t>(1E6), // 1 millisecond
- implicit_cast<uint64_t>(1E7), // 10 milliseconds
- implicit_cast<uint64_t>(2E7), // 20 milliseconds
- implicit_cast<uint64_t>(5E7), // 50 milliseconds
+ static_cast<uint64_t>(1E3), // 1 microsecond
+ static_cast<uint64_t>(1E4), // 10 microseconds
+ static_cast<uint64_t>(1E5), // 100 microseconds
+ static_cast<uint64_t>(1E6), // 1 millisecond
+ static_cast<uint64_t>(1E7), // 10 milliseconds
+ static_cast<uint64_t>(2E7), // 20 milliseconds
+ static_cast<uint64_t>(5E7), // 50 milliseconds
};
for (size_t index = 0; index < arraysize(kTestData); ++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