From: Viktor Uzlov Date: Wed, 24 Feb 2021 06:48:52 +0000 (+0300) Subject: numeric_limits fix for Windows X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvuzlov%2F20256_1;p=modules%2Fkernel.git numeric_limits fix for Windows --- diff --git a/src/Basics/smIdType.hxx.in b/src/Basics/smIdType.hxx.in index 9f87b9fe6..e37101088 100644 --- a/src/Basics/smIdType.hxx.in +++ b/src/Basics/smIdType.hxx.in @@ -38,7 +38,7 @@ struct smIdHasher { static int HashCode(const smIdType theValue, const int theUpperBound) { - return static_cast ((theValue & std::numeric_limits::max()) % theUpperBound + 1); + return static_cast ((theValue & (std::numeric_limits::max)()) % theUpperBound + 1); } static bool IsEqual( const smIdType& id1, const smIdType& id2 )