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=13c7b5636bf7fe5fa251918c818a7d1cad163fb4;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 )