From 9829cfe09b2a21088c096da730290b343a7fb52d Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Thu, 21 Apr 2011 14:34:11 +0200 Subject: [PATCH] Use nan of std lib instead of sqrt(-1) --- vv/vvSlicer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.1