]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
numeric_limits fix for Windows vuzlov/20256_1
authorViktor Uzlov <viktor.uzlov@opencascade.com>
Wed, 24 Feb 2021 06:48:52 +0000 (09:48 +0300)
committerViktor Uzlov <viktor.uzlov@opencascade.com>
Wed, 24 Feb 2021 06:48:52 +0000 (09:48 +0300)
src/Basics/smIdType.hxx.in

index 9f87b9fe66b784a148a85a7c03ed783714fcdebb..e37101088c524646afd108806e062f452db14ac1 100644 (file)
@@ -38,7 +38,7 @@ struct smIdHasher
 {
   static int HashCode(const smIdType theValue,  const int theUpperBound)
   {
-    return static_cast<int> ((theValue & std::numeric_limits<smIdType>::max()) % theUpperBound + 1);
+    return static_cast<int> ((theValue & (std::numeric_limits<smIdType>::max)()) % theUpperBound + 1);
   }
 
   static bool IsEqual( const smIdType& id1, const smIdType& id2 )