Make a pow() call unambiguous.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 27 Jan 2014 22:04:44 +0000 (23:04 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 27 Jan 2014 22:04:44 +0000 (23:04 +0100)
deconvolution_sharpen_effect.cpp

index 0a13dd6..c663d65 100644 (file)
@@ -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) {
        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));
                }
        }
 
                }
        }