We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d3f7c commit 7c23542Copy full SHA for 7c23542
include/boost/int128/iostream.hpp
@@ -87,7 +87,7 @@ auto operator>>(std::basic_istream<charT, traits>& is, LibIntegerType& v)
87
88
// Put back unconsumed characters
89
// If r is greater than 0 then an errno values has been hit
90
- const auto consumed {r > 0 ? 0 : -r};
+ const auto consumed {static_cast<std::size_t>(r > 0 ? 0 : -r)};
91
BOOST_INT128_ASSERT(t_buffer_len >= consumed);
92
const auto return_chars {static_cast<std::size_t>(t_buffer_len - consumed)};
93
0 commit comments