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

Unified Diff: media/blink/test_random.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 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
Index: media/blink/test_random.h
diff --git a/media/blink/test_random.h b/media/blink/test_random.h
index a3603b40ac7f186e0b24041438d9b43635b9d39f..de3df9fde5d50e18073d44a2fdab67104c5671c0 100644
--- a/media/blink/test_random.h
+++ b/media/blink/test_random.h
@@ -25,14 +25,14 @@ class TestRandom {
}
int32_t Rand() {
- static const uint64 A = 16807; // bits 14, 8, 7, 5, 2, 1, 0
+ static const uint64_t A = 16807; // bits 14, 8, 7, 5, 2, 1, 0
seed_ = static_cast<int32_t>((seed_ * A) % M);
CHECK_GT(seed_, 0);
return seed_;
}
private:
- static const uint64 M = 2147483647L; // 2^32-1
+ static const uint64_t M = 2147483647L; // 2^32-1
int32_t seed_;
};

Powered by Google App Engine
This is Rietveld 408576698