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

Unified Diff: webrtc/base/file_posix.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/file_posix.cc
diff --git a/webrtc/base/file_posix.cc b/webrtc/base/file_posix.cc
index 9c166ec1a25f5ac32f709f9ea6469ffa9cca3cde..c386a34f7714557f2fd236491d650242d7b4b5b2 100644
--- a/webrtc/base/file_posix.cc
+++ b/webrtc/base/file_posix.cc
@@ -81,7 +81,7 @@ size_t File::ReadAt(uint8_t* buffer, size_t length, size_t offset) {
}
bool File::Seek(size_t offset) {
- RTC_DCHECK_LE(offset, static_cast<size_t>(std::numeric_limits<off_t>::max()));
+ RTC_DCHECK_LE(offset, std::numeric_limits<off_t>::max());
return lseek(file_, static_cast<off_t>(offset), SEEK_SET) != -1;
}
« no previous file with comments | « webrtc/base/checks.h ('k') | webrtc/base/random_unittest.cc » ('j') | webrtc/base/safe_compare.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698