From 13c7b5636bf7fe5fa251918c818a7d1cad163fb4 Mon Sep 17 00:00:00 2001 From: Viktor Uzlov Date: Wed, 24 Feb 2021 09:48:52 +0300 Subject: [PATCH] numeric_limits fix for Windows --- src/Basics/smIdType.hxx.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2