From: fredb Date: Fri, 17 Feb 2006 21:57:13 +0000 (+0000) Subject: Remove compiler warnings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a18679e95ddca5e6a9b5764adf7bb3f033abff21;p=simgear.git Remove compiler warnings --- diff --git a/simgear/math/SGMatrix.hxx b/simgear/math/SGMatrix.hxx index 3e5628c4..6c4b368d 100644 --- a/simgear/math/SGMatrix.hxx +++ b/simgear/math/SGMatrix.hxx @@ -562,10 +562,10 @@ inline SGMatrixf toMatrixf(const SGMatrixd& m) { - return SGMatrixf(m(0,0), m(0,1), m(0,2), m(0,3), - m(1,0), m(1,1), m(1,2), m(1,3), - m(3,0), m(2,1), m(2,2), m(2,3), - m(4,0), m(4,1), m(4,2), m(4,3)); + return SGMatrixf((float)m(0,0), (float)m(0,1), (float)m(0,2), (float)m(0,3), + (float)m(1,0), (float)m(1,1), (float)m(1,2), (float)m(1,3), + (float)m(3,0), (float)m(2,1), (float)m(2,2), (float)m(2,3), + (float)m(4,0), (float)m(4,1), (float)m(4,2), (float)m(4,3)); } inline diff --git a/simgear/math/SGQuat.hxx b/simgear/math/SGQuat.hxx index a1b14081..f70df3ca 100644 --- a/simgear/math/SGQuat.hxx +++ b/simgear/math/SGQuat.hxx @@ -511,7 +511,7 @@ typedef SGQuat SGQuatd; inline SGQuatf toQuatf(const SGQuatd& v) -{ return SGQuatf(v(0), v(1), v(2), v(3)); } +{ return SGQuatf((float)v(0), (float)v(1), (float)v(2), (float)v(3)); } inline SGQuatd diff --git a/simgear/math/SGVec3.hxx b/simgear/math/SGVec3.hxx index b299d669..8bce7eac 100644 --- a/simgear/math/SGVec3.hxx +++ b/simgear/math/SGVec3.hxx @@ -258,7 +258,7 @@ typedef SGVec3 SGVec3d; inline SGVec3f toVec3f(const SGVec3d& v) -{ return SGVec3f(v(0), v(1), v(2)); } +{ return SGVec3f((float)v(0), (float)v(1), (float)v(2)); } inline SGVec3d diff --git a/simgear/math/SGVec4.hxx b/simgear/math/SGVec4.hxx index e5607ccd..2e469e7f 100644 --- a/simgear/math/SGVec4.hxx +++ b/simgear/math/SGVec4.hxx @@ -249,7 +249,7 @@ typedef SGVec4 SGVec4d; inline SGVec4f toVec4f(const SGVec4d& v) -{ return SGVec4f(v(0), v(1), v(2), v(3)); } +{ return SGVec4f((float)v(0), (float)v(1), (float)v(2), (float)v(3)); } inline SGVec4d