diff --git a/include/osg/Vec2f b/include/osg/Vec2f index ea8017bf5..30e5a9b58 100644 --- a/include/osg/Vec2f +++ b/include/osg/Vec2f @@ -154,7 +154,7 @@ class Vec2f float norm = Vec2f::length(); if (norm>0.0) { - float inv = 1.0/norm; + float inv = 1.0f/norm; _v[0] *= inv; _v[1] *= inv; } diff --git a/include/osg/Vec3f b/include/osg/Vec3f index 81716ecc3..91a9affdd 100644 --- a/include/osg/Vec3f +++ b/include/osg/Vec3f @@ -177,7 +177,7 @@ class Vec3f value_type norm = Vec3f::length(); if (norm>0.0) { - value_type inv = 1.0/norm; + value_type inv = 1.0f/norm; _v[0] *= inv; _v[1] *= inv; _v[2] *= inv; diff --git a/include/osg/Vec4d b/include/osg/Vec4d index f18f11228..b5805bafa 100644 --- a/include/osg/Vec4d +++ b/include/osg/Vec4d @@ -214,7 +214,7 @@ class Vec4d value_type norm = Vec4d::length(); if (norm>0.0f) { - value_type inv = 1.0f/norm; + value_type inv = 1.0/norm; _v[0] *= inv; _v[1] *= inv; _v[2] *= inv;