diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-08-23 17:32:05 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-08-23 19:56:42 +0200 |
commit | f2fa1533d9c2c72bb1c457d22109f356811acb57 (patch) | |
tree | 10dc6eb8ed8bafa44b97506e27792398db27818d /dep/g3dlite | |
parent | 7d4801750bf1f23767a60d3bd88a85e0b59d358a (diff) |
Core/Dependencies: Fix some -Wconversion warnings in G3D
Diffstat (limited to 'dep/g3dlite')
-rw-r--r-- | dep/g3dlite/G3D-v9.0 hotfix2.diff | 32 | ||||
-rw-r--r-- | dep/g3dlite/Readme.txt | 1 | ||||
-rw-r--r-- | dep/g3dlite/include/G3D/Color3.h | 2 | ||||
-rw-r--r-- | dep/g3dlite/include/G3D/Matrix3.h | 4 |
4 files changed, 36 insertions, 3 deletions
diff --git a/dep/g3dlite/G3D-v9.0 hotfix2.diff b/dep/g3dlite/G3D-v9.0 hotfix2.diff new file mode 100644 index 00000000000..6d176e235b3 --- /dev/null +++ b/dep/g3dlite/G3D-v9.0 hotfix2.diff @@ -0,0 +1,32 @@ + dep/g3dlite/include/G3D/Color3.h | 2 +- + dep/g3dlite/include/G3D/Matrix3.h | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/dep/g3dlite/include/G3D/Color3.h b/dep/g3dlite/include/G3D/Color3.h +index 6eedf25..e5c0abc 100644 +--- a/dep/g3dlite/include/G3D/Color3.h ++++ b/dep/g3dlite/include/G3D/Color3.h +@@ -187,7 +187,7 @@ public: + Color3 direction() const; + float squaredLength () const; + float dot (const Color3& rkVector) const; +- float unitize (float fTolerance = 1e-06); ++ float unitize (float fTolerance = 1e-06f); + Color3 cross (const Color3& rkVector) const; + Color3 unitCross (const Color3& rkVector) const; + +diff --git a/dep/g3dlite/include/G3D/Matrix3.h b/dep/g3dlite/include/G3D/Matrix3.h +index 8cfcfe9..13cd410 100644 +--- a/dep/g3dlite/include/G3D/Matrix3.h ++++ b/dep/g3dlite/include/G3D/Matrix3.h +@@ -242,8 +242,8 @@ public: + bool isOrthonormal() const; + + Matrix3 transpose () const; +- bool inverse (Matrix3& rkInverse, float fTolerance = 1e-06) const; +- Matrix3 inverse (float fTolerance = 1e-06) const; ++ bool inverse (Matrix3& rkInverse, float fTolerance = 1e-06f) const; ++ Matrix3 inverse (float fTolerance = 1e-06f) const; + float determinant () const; + + /** singular value decomposition */ diff --git a/dep/g3dlite/Readme.txt b/dep/g3dlite/Readme.txt index c250c77c71b..7fab7f83e8d 100644 --- a/dep/g3dlite/Readme.txt +++ b/dep/g3dlite/Readme.txt @@ -11,3 +11,4 @@ G3D-v8.0_hotfix7.diff - 2013-08-31 - fix typo in Matrix4 == operator G3D-v8.0_hotfix8.diff - 2013-09-01 - fix typo in Vector3int32 += operator G3D-v8.0_hotfix9.diff - 2014-06-01 - only VS < 10 don't ship inttypes.h G3D-v9.0 hotfix1.diff - 2014-08-22 - updated to G3D9, reapplied previous patches and removed unneeded changes +G3D-v9.0 hotfix2.diff - 2014-08-23 - fix some -Wconversion warnings
\ No newline at end of file diff --git a/dep/g3dlite/include/G3D/Color3.h b/dep/g3dlite/include/G3D/Color3.h index 6eedf252233..e5c0abcb223 100644 --- a/dep/g3dlite/include/G3D/Color3.h +++ b/dep/g3dlite/include/G3D/Color3.h @@ -187,7 +187,7 @@ public: Color3 direction() const; float squaredLength () const; float dot (const Color3& rkVector) const; - float unitize (float fTolerance = 1e-06); + float unitize (float fTolerance = 1e-06f); Color3 cross (const Color3& rkVector) const; Color3 unitCross (const Color3& rkVector) const; diff --git a/dep/g3dlite/include/G3D/Matrix3.h b/dep/g3dlite/include/G3D/Matrix3.h index 8cfcfe9599f..13cd41040ff 100644 --- a/dep/g3dlite/include/G3D/Matrix3.h +++ b/dep/g3dlite/include/G3D/Matrix3.h @@ -242,8 +242,8 @@ public: bool isOrthonormal() const; Matrix3 transpose () const; - bool inverse (Matrix3& rkInverse, float fTolerance = 1e-06) const; - Matrix3 inverse (float fTolerance = 1e-06) const; + bool inverse (Matrix3& rkInverse, float fTolerance = 1e-06f) const; + Matrix3 inverse (float fTolerance = 1e-06f) const; float determinant () const; /** singular value decomposition */ |