From: Steinar H. Gunderson Date: Mon, 27 Jan 2014 22:04:44 +0000 (+0100) Subject: Make a pow() call unambiguous. X-Git-Tag: 1.0~47 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=48cb205a8dad4f2b3d61b1d6d69c14b5c044e32f;ds=inline Make a pow() call unambiguous. --- diff --git a/deconvolution_sharpen_effect.cpp b/deconvolution_sharpen_effect.cpp index 0a13dd6..c663d65 100644 --- a/deconvolution_sharpen_effect.cpp +++ b/deconvolution_sharpen_effect.cpp @@ -301,7 +301,7 @@ void DeconvolutionSharpenEffect::update_deconvolution_kernel() MatrixXf r_uu(8 * R + 1, 8 * R + 1); for (int y = -4 * R; y <= 4 * R; ++y) { for (int x = -4 * R; x <= 4 * R; ++x) { - r_uu(x + 4 * R, y + 4 * R) = pow(correlation, hypot(x, y)); + r_uu(x + 4 * R, y + 4 * R) = pow(double(correlation), hypot(x, y)); } }