From: Simon Rit Date: Thu, 21 Apr 2011 12:34:11 +0000 (+0200) Subject: Use nan of std lib instead of sqrt(-1) X-Git-Tag: v1.2.0~27 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9829cfe09b2a21088c096da730290b343a7fb52d;p=clitk.git Use nan of std lib instead of sqrt(-1) --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 88c5676..42f8303 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1161,7 +1161,7 @@ double vvSlicer::GetScalarComponentAsDouble(vtkImageData *image, int X, double Y iy > image->GetWholeExtent()[3] || iz < image->GetWholeExtent()[4] || iz > image->GetWholeExtent()[5] ) - return sqrt(-1.); + return std::numeric_limits::quiet_NaN(); image->SetUpdateExtent(ix, ix, iy, iy, iz, iz); image->Update();