From 5fe4b975baca775e08428cfad51ba7eadfa4d158 Mon Sep 17 00:00:00 2001 From: "Adi Shavit @ MacBookPro" Date: Sun, 24 Jul 2016 15:54:16 +0300 Subject: [PATCH] Removes MSVC warning with explicit cast. --- include/assimp/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/types.h b/include/assimp/types.h index 1756754..4656386 100644 --- a/include/assimp/types.h +++ b/include/assimp/types.h @@ -216,7 +216,7 @@ struct aiColor3D /** Check whether a color is black */ bool IsBlack() const { - static const ai_real epsilon = 10e-3; + static const ai_real epsilon = ai_real(10e-3); return std::fabs( r ) < epsilon && std::fabs( g ) < epsilon && std::fabs( b ) < epsilon; } -- 2.7.4