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

Unified Diff: webrtc/audio/audio_transport_proxy.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
« no previous file with comments | « no previous file | webrtc/base/checks.h » ('j') | webrtc/base/safe_compare.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_transport_proxy.cc
diff --git a/webrtc/audio/audio_transport_proxy.cc b/webrtc/audio/audio_transport_proxy.cc
index 7036c1059c8fa7afc83be4826f0a1aebfea61d2a..c201d8a4906f8683658641152b718448c58c46c1 100644
--- a/webrtc/audio/audio_transport_proxy.cc
+++ b/webrtc/audio/audio_transport_proxy.cc
@@ -110,14 +110,13 @@ void AudioTransportProxy::PullRenderData(int bits_per_sample,
void* audio_data,
int64_t* elapsed_time_ms,
int64_t* ntp_time_ms) {
- RTC_DCHECK_EQ(static_cast<size_t>(bits_per_sample), 16);
+ RTC_DCHECK_EQ(bits_per_sample, 16);
RTC_DCHECK_GE(number_of_channels, 1);
RTC_DCHECK_LE(number_of_channels, 2);
- RTC_DCHECK_GE(static_cast<int>(sample_rate),
- AudioProcessing::NativeRate::kSampleRate8kHz);
+ RTC_DCHECK_GE(sample_rate, AudioProcessing::NativeRate::kSampleRate8kHz);
// 100 = 1 second / data duration (10 ms).
- RTC_DCHECK_EQ(static_cast<int>(number_of_frames * 100), sample_rate);
+ RTC_DCHECK_EQ(number_of_frames * 100, sample_rate);
// 8 = bits per byte.
RTC_DCHECK_LE(bits_per_sample / 8 * number_of_frames * number_of_channels,
« no previous file with comments | « no previous file | webrtc/base/checks.h » ('j') | webrtc/base/safe_compare.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698