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

Unified Diff: webrtc/modules/audio_processing/aec/aec_core.cc

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: 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/modules/audio_processing/aec/aec_core.cc
diff --git a/webrtc/modules/audio_processing/aec/aec_core.cc b/webrtc/modules/audio_processing/aec/aec_core.cc
index e3fd14c9dab69c77eae0a807a5487cba3cb7667e..b410c55507df27e646fb1897398f7632cb4128fd 100644
--- a/webrtc/modules/audio_processing/aec/aec_core.cc
+++ b/webrtc/modules/audio_processing/aec/aec_core.cc
@@ -202,7 +202,7 @@ void BlockBuffer::Insert(const float block[PART_LEN]) {
void BlockBuffer::ExtractExtendedBlock(float extended_block[PART_LEN2]) {
float* block_ptr = NULL;
- RTC_DCHECK_LT(0u, AvaliableSpace());
+ RTC_DCHECK_LT(0, AvaliableSpace());
// Extract the previous block.
WebRtc_MoveReadPtr(buffer_, -1);
@@ -461,7 +461,7 @@ static void UpdateLogRatioMetric(Stats* metric, float numerator,
// Average.
metric->counter++;
// This is to protect overflow, which should almost never happen.
- RTC_CHECK_NE(0u, metric->counter);
+ RTC_CHECK_NE(0, metric->counter);
metric->sum += metric->instant;
metric->average = metric->sum / metric->counter;
@@ -469,7 +469,7 @@ static void UpdateLogRatioMetric(Stats* metric, float numerator,
if (metric->instant > metric->average) {
metric->hicounter++;
// This is to protect overflow, which should almost never happen.
- RTC_CHECK_NE(0u, metric->hicounter);
+ RTC_CHECK_NE(0, metric->hicounter);
metric->hisum += metric->instant;
metric->himean = metric->hisum / metric->hicounter;
}
« no previous file with comments | « webrtc/modules/audio_mixer/audio_frame_manipulator.cc ('k') | webrtc/modules/audio_processing/aec/aec_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698