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

Unified Diff: webrtc/modules/audio_processing/transient/file_utils_unittest.cc

Issue 1412653006: Fix Visual Studio 2015 WebRtc x86 build. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix the Visual Studio 2015 build Created 5 years, 1 month 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_processing/transient/file_utils_unittest.cc
diff --git a/webrtc/modules/audio_processing/transient/file_utils_unittest.cc b/webrtc/modules/audio_processing/transient/file_utils_unittest.cc
index 7a035d2b41fbef15ced06bc5ab7ea382084e9aa8..c418ea47de6622c5ffa8ef8a8e64d53de21a42ee 100644
--- a/webrtc/modules/audio_processing/transient/file_utils_unittest.cc
+++ b/webrtc/modules/audio_processing/transient/file_utils_unittest.cc
@@ -365,9 +365,9 @@ TEST_F(TransientFileUtilsTest, DISABLED_ON_IOS(WriteFloatBufferToFile)) {
rtc::scoped_ptr<float[]> written_buffer(new float[kBufferLength]);
rtc::scoped_ptr<float[]> read_buffer(new float[kBufferLength]);
- written_buffer[0] = kPi;
- written_buffer[1] = kE;
- written_buffer[2] = kAvogadro;
+ written_buffer[0] = (float)kPi;
hlundin-webrtc 2015/11/11 15:59:38 Please, use static_cast<float)>(kPi) and so on.
+ written_buffer[1] = (float)kE;
+ written_buffer[2] = (float)kAvogadro;
EXPECT_EQ(kBufferLength, WriteFloatBufferToFile(file.get(),
kBufferLength,
« no previous file with comments | « webrtc/modules/audio_coding/codecs/isac/main/test/simpleKenny.c ('k') | webrtc/video_engine/payload_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698