From 70091bcae74ec4f077c32ce4d6ae64cb53028ef3 Mon Sep 17 00:00:00 2001 From: DNKpp Date: Tue, 25 Aug 2020 23:25:41 +0200 Subject: [PATCH] resolve warning C4305: use decimal(0.00001) ctor style Signed-off-by: DNKpp --- src/collision/shapes/AABB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collision/shapes/AABB.cpp b/src/collision/shapes/AABB.cpp index 2d9b29e5..351b0015 100644 --- a/src/collision/shapes/AABB.cpp +++ b/src/collision/shapes/AABB.cpp @@ -124,7 +124,7 @@ bool AABB::testRayIntersect(const Ray& ray) const { // Add in an epsilon term to counteract arithmetic errors when segment is // (near) parallel to a coordinate axis (see text for detail) - const decimal epsilon = 0.00001; + const decimal epsilon = decimal(0.00001); adx += epsilon; ady += epsilon; adz += epsilon;