Removes MSVC warning with explicit cast.

This commit is contained in:
Adi Shavit @ MacBookPro
2016-07-24 15:54:16 +03:00
parent 86b7f12c18
commit 5fe4b975ba

View File

@@ -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;
}