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

Unified Diff: webrtc/modules/audio_device/win/audio_device_core_win.cc

Issue 1593713013: Roll chromium_revision 7a4fb8d..f527e86 (370025:370073) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix/disable Win Clang warnings Created 4 years, 11 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
Index: webrtc/modules/audio_device/win/audio_device_core_win.cc
diff --git a/webrtc/modules/audio_device/win/audio_device_core_win.cc b/webrtc/modules/audio_device/win/audio_device_core_win.cc
index 4b75922109bd3246e1a0d3d3b07d8788f64630c6..811a04d2fef8971f6c3e888e12a4f4fe72c22ffc 100644
--- a/webrtc/modules/audio_device/win/audio_device_core_win.cc
+++ b/webrtc/modules/audio_device/win/audio_device_core_win.cc
@@ -2237,9 +2237,9 @@ int32_t AudioDeviceWindowsCore::InitPlayout()
hr = S_FALSE;
// Iterate over frequencies and channels, in order of priority
- for (int freq = 0; freq < sizeof(freqs)/sizeof(freqs[0]); freq++)
+ for (unsigned int freq = 0; freq < sizeof(freqs)/sizeof(freqs[0]); freq++)
{
- for (int chan = 0; chan < sizeof(_playChannelsPrioList)/sizeof(_playChannelsPrioList[0]); chan++)
+ for (unsigned int chan = 0; chan < sizeof(_playChannelsPrioList)/sizeof(_playChannelsPrioList[0]); chan++)
{
Wfx.nChannels = _playChannelsPrioList[chan];
Wfx.nSamplesPerSec = freqs[freq];
@@ -2574,9 +2574,9 @@ int32_t AudioDeviceWindowsCore::InitRecording()
hr = S_FALSE;
// Iterate over frequencies and channels, in order of priority
- for (int freq = 0; freq < sizeof(freqs)/sizeof(freqs[0]); freq++)
+ for (unsigned int freq = 0; freq < sizeof(freqs)/sizeof(freqs[0]); freq++)
{
- for (int chan = 0; chan < sizeof(_recChannelsPrioList)/sizeof(_recChannelsPrioList[0]); chan++)
+ for (unsigned int chan = 0; chan < sizeof(_recChannelsPrioList)/sizeof(_recChannelsPrioList[0]); chan++)
{
Wfx.nChannels = _recChannelsPrioList[chan];
Wfx.nSamplesPerSec = freqs[freq];
@@ -5078,7 +5078,7 @@ char* AudioDeviceWindowsCore::WideToUTF8(const TCHAR* src) const {
const size_t kStrLen = sizeof(_str);
memset(_str, 0, kStrLen);
// Get required size (in bytes) to be able to complete the conversion.
- int required_size = WideCharToMultiByte(CP_UTF8, 0, src, -1, _str, 0, 0, 0);
+ unsigned int required_size = (unsigned int)WideCharToMultiByte(CP_UTF8, 0, src, -1, _str, 0, 0, 0);
if (required_size <= kStrLen)
{
// Process the entire input string, including the terminating null char.

Powered by Google App Engine
This is Rietveld 408576698