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;