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:
jianjun.zhu 2016-10-05 19:19:23 -07:00 committed by Commit bot
parent 2ca8d5c430
commit a84aa57799

View File

@ -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;
}