diff options
Diffstat (limited to 'third_party/pffft/pffft_unittest.cc')
-rw-r--r-- | third_party/pffft/pffft_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/pffft/pffft_unittest.cc b/third_party/pffft/pffft_unittest.cc index 559723434e..c2bf184191 100644 --- a/third_party/pffft/pffft_unittest.cc +++ b/third_party/pffft/pffft_unittest.cc @@ -68,7 +68,7 @@ void PffftValidate(int fft_size, bool complex_fft) { } for (k = 0; k < num_floats; ++k) { - ref_max = std::max(ref_max, fabs(ref[k])); + ref_max = std::max<float>(ref_max, (float) fabs(ref[k])); } // Pass 0: non canonical ordering of transform coefficients. |