Warning fixes for VS, and removal of associated warning disables

This commit is contained in:
Robert Osfield
2009-01-23 15:12:26 +00:00
parent aa8402ce81
commit 7b598c5701
6 changed files with 22 additions and 24 deletions

View File

@@ -233,7 +233,7 @@ int BuildKdTree::divide(KdTree::BuildOptions& options, osg::BoundingBox& bb, int
if (node.bb.valid())
{
float epsilon = 1e-6;
float epsilon = 1e-6f;
node.bb._min.x() -= epsilon;
node.bb._min.y() -= epsilon;
node.bb._min.z() -= epsilon;
@@ -505,7 +505,7 @@ void IntersectKdTree::intersect(const KdTree::KdNode& node, const osg::Vec3& ls,
float r,r0,r1,r2;
const float esplison = 1e-10;
const float esplison = 1e-10f;
if (det>esplison)
{
float u = (P*T);