From 051259760a0af673afe321081788bdf560ccd403 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 28 Jan 2008 19:42:16 +0000 Subject: [PATCH] Added explict casts to double to prevent VS compiler error --- src/osgViewer/View.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index e68916670..05ec6421f 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -1161,7 +1161,7 @@ static osg::Geometry* createParoramicSphericalDisplayDistortionMesh(const osg::V double beta = atan2(sqrt(pos.x()*pos.x() + pos.y()*pos.y()), pos.z()); if (beta<0.0) beta += 2.0*osg::PI; - double gamma = atan2(sqrt(pos.x()*pos.x() + pos.y()*pos.y()), pos.z()+distance); + double gamma = atan2(sqrt(double(pos.x()*pos.x() + pos.y()*pos.y())), double(pos.z()+distance)); if (gamma<0.0) gamma += 2.0*osg::PI;