Przeglądaj źródła

Removes MSVC warning with explicit cast.

Adi Shavit @ MacBookPro 9 lat temu
rodzic
commit
5fe4b975ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      include/assimp/types.h

+ 1 - 1
include/assimp/types.h

@@ -216,7 +216,7 @@ struct aiColor3D
 
 
     /** Check whether a color is black */
     /** Check whether a color is black */
     bool IsBlack() const {
     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;
         return std::fabs( r ) < epsilon && std::fabs( g ) < epsilon && std::fabs( b ) < epsilon;
     }
     }