bug 1389641 add 'f' to literal initializer for float const r=trivial
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 16 Aug 2017 12:32:32 +1200
changeset 647136 9b101cdb3935c224f97a4f1e6de642c0ca5c3c5e
parent 647135 96b18e67de262a0f19610a245f83b17bcbc1ad61
child 647137 6e761bf54cd0ad2f9eeef25c795ffc54cb577bb9
child 647163 9818f7ef91275a1bc6e9450e4859917100aa70ea
child 647166 17a3b73bd3a5c85c59854cedaefab2edb906c44b
child 647365 9d36932ee7896f3df4feac343f9797b0f068f706
child 647378 b641d1af151ed08ee2089ae224ad77bcf5437912
child 647380 25a7163727b935e70d99554bb3928660e45827fc
child 647454 eb99362feb6a4b0363ea8806db9c64fc02d1c6ff
child 648147 a69d0a8f647a39268797ea1b5848925dd8bd6893
child 649741 9213955165c7d5b3acd6148cbf1cc1988cca4c39
child 649742 e4132d21a7cc48c7037e3ac30d889e1615c4b206
push id74301
push userbmo:topwu.tw@gmail.com
push dateWed, 16 Aug 2017 01:17:27 +0000
reviewerstrivial
bugs1389641
milestone57.0a1
bug 1389641 add 'f' to literal initializer for float const r=trivial Address MSVC build failures.
dom/media/webaudio/blink/Reverb.cpp
--- a/dom/media/webaudio/blink/Reverb.cpp
+++ b/dom/media/webaudio/blink/Reverb.cpp
@@ -33,17 +33,17 @@
 #include "ReverbConvolver.h"
 #include "mozilla/FloatingPoint.h"
 
 using namespace mozilla;
 
 namespace WebCore {
 
 // Empirical gain calibration tested across many impulse responses to ensure perceived volume is same as dry (unprocessed) signal
-const float GainCalibration = 0.00125;
+const float GainCalibration = 0.00125f;
 const float GainCalibrationSampleRate = 44100;
 
 // A minimum power value to when normalizing a silent (or very quiet) impulse response
 const float MinPower = 0.000125f;
 
 static float calculateNormalizationScale(ThreadSharedFloatArrayBufferList* response, size_t aLength, float sampleRate)
 {
     // Normalize by RMS power