From 009409695d482d48f81202e59c2610a37256d731 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Apr 2009 16:50:50 +0000 Subject: [PATCH] Fixed warning --- src/osgPlugins/dxf/dxfEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/dxf/dxfEntity.cpp b/src/osgPlugins/dxf/dxfEntity.cpp index 55d4c8008..a5fb2ef2f 100644 --- a/src/osgPlugins/dxf/dxfEntity.cpp +++ b/src/osgPlugins/dxf/dxfEntity.cpp @@ -196,7 +196,7 @@ dxfCircle::drawScene(scene* sc) theta=osg::DegreesToRadians(theta); // We create an anglestep<=theta so that the line's points are evenly distributed around the circle - unsigned int numsteps=floor(osg::PI*2/theta); + unsigned int numsteps=static_cast(floor(osg::PI*2/theta)); if (numsteps<3) numsteps=3; // Sanity check: minimal representation of a circle is a tri double anglestep=osg::PI*2/numsteps;