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

Unified Diff: webrtc/modules/audio_device/ios/audio_device_ios.mm

Issue 2939583003: Fix compile error from ambiguous call to std::abs
Patch Set: Created 3 years, 6 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/ios/audio_device_ios.mm
diff --git a/webrtc/modules/audio_device/ios/audio_device_ios.mm b/webrtc/modules/audio_device/ios/audio_device_ios.mm
index 3df9c710d782cafcbd999a79295d507a0c8d58f3..f2a3fbbad9ce59b517087e04e98eb14b0f8a40b2 100644
--- a/webrtc/modules/audio_device/ios/audio_device_ios.mm
+++ b/webrtc/modules/audio_device/ios/audio_device_ios.mm
@@ -580,7 +580,7 @@ void AudioDeviceIOS::HandleSampleRateChange(float sample_rate) {
(unsigned long)current_frames_per_buffer);
// Sample rate and buffer size are the same, no work to do.
- if (std::abs(current_sample_rate - session_sample_rate) <= DBL_EPSILON &&
+ if (std::abs((int)current_sample_rate - (int)session_sample_rate) <= DBL_EPSILON &&
current_frames_per_buffer == session_frames_per_buffer) {
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698