File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1689,7 +1689,7 @@ CASE( "byte_span() [span_FEATURE_BYTE_SPAN=1]" )
1689
1689
CASE ( " byte_span(): Allows building a span of std::byte from a single object (C++17, byte-lite)" )
1690
1690
{
1691
1691
#if span_CPP11_OR_GREATER && ( span_HAVE( BYTE ) || span_HAVE( NONSTD_BYTE ) )
1692
- int x = (std::numeric_limits< int >::max)() ;
1692
+ int x = ~ 0 ;
1693
1693
1694
1694
span<xstd::byte> spn = byte_span ( x );
1695
1695
@@ -1707,7 +1707,7 @@ CASE( "byte_span(): Allows building a span of std::byte from a single object (C+
1707
1707
CASE ( " byte_span(): Allows building a span of const std::byte from a single const object (C++17, byte-lite)" )
1708
1708
{
1709
1709
#if span_CPP11_OR_GREATER && ( span_HAVE( BYTE ) || span_HAVE( NONSTD_BYTE ) )
1710
- const int x = (std::numeric_limits< int >::max)() ;
1710
+ const int x = ~ 0 ;
1711
1711
1712
1712
span<const xstd::byte> spn = byte_span ( x );
1713
1713
You can’t perform that action at this time.
0 commit comments