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

Unified Diff: webrtc/base/random_unittest.cc

Issue 2534683002: RTC_[D]CHECK_op: Remove superfluous casts (Closed)
Patch Set: test Created 4 years, 1 month 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: webrtc/base/random_unittest.cc
diff --git a/webrtc/base/random_unittest.cc b/webrtc/base/random_unittest.cc
index 0d9041fa80f2a2d24bbb50a09387e4215dc541be..704e81fb2f5184f8a096eaa16c5d23ac6385ef01 100644
--- a/webrtc/base/random_unittest.cc
+++ b/webrtc/base/random_unittest.cc
@@ -23,7 +23,7 @@ namespace {
// Computes the positive remainder of x/n.
template <typename T>
T fdiv_remainder(T x, T n) {
- RTC_CHECK_GE(n, static_cast<T>(0));
+ RTC_CHECK_GE(n, 0);
T remainder = x % n;
if (remainder < 0)
remainder += n;

Powered by Google App Engine
This is Rietveld 408576698