]> git.sesse.net Git - movit/commitdiff
Fix a C++11-related warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 30 Mar 2015 20:54:21 +0000 (22:54 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 30 Mar 2015 20:54:21 +0000 (22:54 +0200)
fft_convolution_effect_test.cpp

index a55fe3128ad040e73dccf4268ce0edf17be57e27..9d395f2e20faf568a4459f8ff0ac22f3d291494c 100644 (file)
@@ -52,10 +52,10 @@ TEST(FFTConvolutionEffectTest, Constant) {
                0.4, 1.4, 2.4, 3.4,
        };
        float expected_data[size * size] = {
-               f * 0.1, f * 1.1, f * 2.1, f * 3.1,
-               f * 0.2, f * 1.2, f * 2.2, f * 3.2,
-               f * 0.3, f * 1.3, f * 2.3, f * 3.3,
-               f * 0.4, f * 1.4, f * 2.4, f * 3.4,
+               f * 0.1f, f * 1.1f, f * 2.1f, f * 3.1f,
+               f * 0.2f, f * 1.2f, f * 2.2f, f * 3.2f,
+               f * 0.3f, f * 1.3f, f * 2.3f, f * 3.3f,
+               f * 0.4f, f * 1.4f, f * 2.4f, f * 3.4f,
        };
        float out_data[size * size];
        float kernel[convolve_size * convolve_size];