diff --git a/STL_Extension/include/CGAL/Spatial_lock_grid_3.h b/STL_Extension/include/CGAL/Spatial_lock_grid_3.h index cfe3ed75d9f..303b72f8053 100644 --- a/STL_Extension/include/CGAL/Spatial_lock_grid_3.h +++ b/STL_Extension/include/CGAL/Spatial_lock_grid_3.h @@ -598,7 +598,7 @@ private: static tbb::atomic last_id; unsigned int id = ++last_id; // Ensure it is > 0 - return (1 + id%(std::numeric_limits::max())); + return (1 + id%((std::numeric_limits::max)())); } protected: