From: srit Date: Wed, 30 Mar 2011 10:10:05 +0000 (+0000) Subject: Windows compiling errors (ambiguous call to pow and variable in switch) X-Git-Tag: v1.2.0~87 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c06ec8031c5a00490e0ae217ca1b04993fb63591;p=clitk.git Windows compiling errors (ambiguous call to pow and variable in switch) --- diff --git a/tools/clitkImageArithmGenericFilter.txx b/tools/clitkImageArithmGenericFilter.txx index 1dd236f..c2f08f8 100755 --- a/tools/clitkImageArithmGenericFilter.txx +++ b/tools/clitkImageArithmGenericFilter.txx @@ -364,9 +364,8 @@ void clitk::ImageArithmGenericFilter::ComputeImage(Iter1 it, Ite } break; case 10: // exp - static const double c = std::pow(2,16); while (!it.IsAtEnd()) { - ito.Set(PixelTypeDownCast((c - (double)it.Get())/mScalar)); + ito.Set(PixelTypeDownCast((0x10000 - (double)it.Get())/mScalar)); ++it; ++ito; }