From 41345686602107c46b9d1a7d80a17cd13b4cb565 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 1 Dec 2017 18:52:05 -1000 Subject: [PATCH] Minor literal fix --- include/zeus/CAABox.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zeus/CAABox.hpp b/include/zeus/CAABox.hpp index bf30ac9..c72b3d4 100644 --- a/include/zeus/CAABox.hpp +++ b/include/zeus/CAABox.hpp @@ -382,7 +382,7 @@ public: inline void splitX(CAABox& negX, CAABox& posX) const { - float midX = (max.x - min.x) * .5 + min.x; + float midX = (max.x - min.x) * .5f + min.x; posX.max = max; posX.min = min; posX.min.x = midX; @@ -393,7 +393,7 @@ public: inline void splitY(CAABox& negY, CAABox& posY) const { - float midY = (max.y - min.y) * .5 + min.y; + float midY = (max.y - min.y) * .5f + min.y; posY.max = max; posY.min = min; posY.min.y = midY; @@ -404,7 +404,7 @@ public: inline void splitZ(CAABox& negZ, CAABox& posZ) const { - float midZ = (max.z - min.z) * .5 + min.z; + float midZ = (max.z - min.z) * .5f + min.z; posZ.max = max; posZ.min = min; posZ.min.z = midZ;