diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2022-03-10 12:51:10 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-03-24 17:09:11 +0100 |
commit | 679d3a8ba747186188bdfba9989908ddfe640716 (patch) | |
tree | 61e040a0ac47fbf5939cce85fa5b6952e88b3209 | |
parent | d1f441787a82a89c305796bfe13ba01da83ee3f6 (diff) | |
download | irrlicht-679d3a8ba747186188bdfba9989908ddfe640716.tar.xz |
Avoid some more warnings when working with CMatrix4<f64>
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6304 dfc29bdd-3216-0410-991c-e03cc46cb475
-rw-r--r-- | include/matrix4.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/matrix4.h b/include/matrix4.h index ebbba58..e879c04 100644 --- a/include/matrix4.h +++ b/include/matrix4.h @@ -1192,15 +1192,15 @@ namespace core template <class T>
inline void CMatrix4<T>::transformVect( vector3df& vect) const
{
- f32 vector[3];
+ T vector[3];
vector[0] = vect.X*M[0] + vect.Y*M[4] + vect.Z*M[8] + M[12];
vector[1] = vect.X*M[1] + vect.Y*M[5] + vect.Z*M[9] + M[13];
vector[2] = vect.X*M[2] + vect.Y*M[6] + vect.Z*M[10] + M[14];
- vect.X = vector[0];
- vect.Y = vector[1];
- vect.Z = vector[2];
+ vect.X = static_cast<f32>(vector[0]);
+ vect.Y = static_cast<f32>(vector[1]);
+ vect.Z = static_cast<f32>(vector[2]);
}
template <class T>
|