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

Unified Diff: webrtc/base/checks.h

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/checks.h
diff --git a/webrtc/base/checks.h b/webrtc/base/checks.h
index 653ed322e71d5d3de79eddc299c329d4abc60df2..e165741b85a903e77ecc58d4c6f9ef681aafad8c 100644
--- a/webrtc/base/checks.h
+++ b/webrtc/base/checks.h
@@ -246,8 +246,7 @@ class FatalMessage {
// remainder is zero.
template <typename T>
inline T CheckedDivExact(T a, T b) {
- RTC_CHECK_EQ(a % b, static_cast<T>(0)) << a << " is not evenly divisible by "
- << b;
+ RTC_CHECK_EQ(a % b, 0) << a << " is not evenly divisible by " << b;
return a / b;
}

Powered by Google App Engine
This is Rietveld 408576698