mirror of https://github.com/CGAL/cgal
Protect another "max"
This commit is contained in:
parent
fa72bc0f01
commit
d5e97c734c
|
|
@ -598,7 +598,7 @@ private:
|
|||
static tbb::atomic<unsigned int> last_id;
|
||||
unsigned int id = ++last_id;
|
||||
// Ensure it is > 0
|
||||
return (1 + id%(std::numeric_limits<unsigned int>::max()));
|
||||
return (1 + id%((std::numeric_limits<unsigned int>::max)()));
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Reference in New Issue