From 2cfaf241c8c5eca16913aa0d14a3ffe4a54a02ce Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sat, 11 Jan 2014 20:28:53 +0000 Subject: [PATCH] Explicitly cast these to floats --- library/PolyVoxCore/include/PolyVoxCore/Impl/QEF.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/QEF.inl b/library/PolyVoxCore/include/PolyVoxCore/Impl/QEF.inl index e5d9cba7..93a52cfe 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/QEF.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/QEF.inl @@ -35,7 +35,7 @@ Vector3DFloat evaluateQEF( double x[3]; solveSVD(u, v, d, vec, x, rows); - return {(float)x[0], (float)x[1], (float)x[2]}; + return {static_cast(x[0]), static_cast(x[1]), static_cast(x[2])}; } //----------------------------------------------------------------------------