Use std::abs instead of C-style abs.
BUG=webrtc:6486 Review-Url: https://codereview.webrtc.org/2396823002 Cr-Commit-Position: refs/heads/master@{#14536}
This commit is contained in:
parent
2ca8d5c430
commit
a84aa57799
@ -537,7 +537,7 @@ void AudioDeviceIOS::HandleSampleRateChange(float sample_rate) {
|
||||
current_sample_rate, (unsigned long)current_frames_per_buffer);;
|
||||
|
||||
// Sample rate and buffer size are the same, no work to do.
|
||||
if (abs(current_sample_rate - session_sample_rate) <= DBL_EPSILON &&
|
||||
if (std::abs(current_sample_rate - session_sample_rate) <= DBL_EPSILON &&
|
||||
current_frames_per_buffer == session_frames_per_buffer) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user