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 b8b39ca commit eca6125Copy full SHA for eca6125
libcxx/test/benchmarks/algorithms/nonmodifying/fold.bench.cpp
@@ -31,7 +31,7 @@ int main(int argc, char** argv) {
31
std::size_t const size = st.range(0);
32
using ValueType = typename Container::value_type;
33
ValueType const limit = 1000; // ensure we never overflow in the addition
34
- assert(size <= std::numeric_limits<ValueType>::max());
+ assert(static_cast<ValueType>(size) <= std::numeric_limits<ValueType>::max());
35
assert(std::numeric_limits<ValueType>::max() > static_cast<ValueType>(size) * limit);
36
assert(std::numeric_limits<ValueType>::min() < static_cast<ValueType>(size) * limit * -1);
37
0 commit comments