diff --git a/libcxx/include/__random/discard_block_engine.h b/libcxx/include/__random/discard_block_engine.h --- a/libcxx/include/__random/discard_block_engine.h +++ b/libcxx/include/__random/discard_block_engine.h @@ -12,8 +12,8 @@ #include <__config> #include <__random/is_seed_sequence.h> #include <__utility/move.h> -#include #include +#include #include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) @@ -33,7 +33,7 @@ static_assert( 0 < __r, "discard_block_engine invalid parameters"); static_assert(__r <= __p, "discard_block_engine invalid parameters"); - static_assert(__r <= INT_MAX, "discard_block_engine invalid parameters"); + static_assert(__r <= numeric_limits::max(), "discard_block_engine invalid parameters"); public: // types typedef typename _Engine::result_type result_type;