From 48cb205a8dad4f2b3d61b1d6d69c14b5c044e32f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 27 Jan 2014 23:04:44 +0100 Subject: [PATCH] Make a pow() call unambiguous. --- deconvolution_sharpen_effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.39.2