Replace CHECK(x && y) with two separate CHECK() calls
That way, the debug printout will tell us which of x and y that was false. BUG=none Review-Url: https://codereview.webrtc.org/2988153003 Cr-Commit-Position: refs/heads/master@{#19297}
This commit is contained in:
@ -32,7 +32,10 @@ MovingMoments::~MovingMoments() {}
|
||||
|
||||
void MovingMoments::CalculateMoments(const float* in, size_t in_length,
|
||||
float* first, float* second) {
|
||||
RTC_DCHECK(in && in_length > 0 && first && second);
|
||||
RTC_DCHECK(in);
|
||||
RTC_DCHECK_GT(in_length, 0);
|
||||
RTC_DCHECK(first);
|
||||
RTC_DCHECK(second);
|
||||
|
||||
for (size_t i = 0; i < in_length; ++i) {
|
||||
const float old_value = queue_.front();
|
||||
|
||||
Reference in New Issue
Block a user