Fixed warnigs on VS.

This commit is contained in:
Robert Osfield 2004-05-20 13:54:53 +00:00
parent f8daf206ab
commit fee33001fd
3 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ class Vec2f
float norm = Vec2f::length(); float norm = Vec2f::length();
if (norm>0.0) if (norm>0.0)
{ {
float inv = 1.0/norm; float inv = 1.0f/norm;
_v[0] *= inv; _v[0] *= inv;
_v[1] *= inv; _v[1] *= inv;
} }

View File

@ -177,7 +177,7 @@ class Vec3f
value_type norm = Vec3f::length(); value_type norm = Vec3f::length();
if (norm>0.0) if (norm>0.0)
{ {
value_type inv = 1.0/norm; value_type inv = 1.0f/norm;
_v[0] *= inv; _v[0] *= inv;
_v[1] *= inv; _v[1] *= inv;
_v[2] *= inv; _v[2] *= inv;

View File

@ -214,7 +214,7 @@ class Vec4d
value_type norm = Vec4d::length(); value_type norm = Vec4d::length();
if (norm>0.0f) if (norm>0.0f)
{ {
value_type inv = 1.0f/norm; value_type inv = 1.0/norm;
_v[0] *= inv; _v[0] *= inv;
_v[1] *= inv; _v[1] *= inv;
_v[2] *= inv; _v[2] *= inv;