File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
#pragma once
8
8
9
9
// [CLI11:public_includes:set]
10
+ #include < cmath>
10
11
#include < cstdint>
11
12
#include < exception>
12
13
#include < limits>
@@ -1545,8 +1546,7 @@ inline std::string sum_string_vector(const std::vector<std::string> &values) {
1545
1546
} else {
1546
1547
if (val <= static_cast <double >((std::numeric_limits<std::int64_t >::min)()) ||
1547
1548
val >= static_cast <double >((std::numeric_limits<std::int64_t >::max)()) ||
1548
- // NOLINTNEXTLINE(clang-diagnostic-float-equal,bugprone-narrowing-conversions)
1549
- val == static_cast <std::int64_t >(val)) {
1549
+ std::ceil (val) == std::floor (val)) {
1550
1550
output = detail::value_string (static_cast <int64_t >(val));
1551
1551
} else {
1552
1552
output = detail::value_string (val);
You can’t perform that action at this time.
0 commit comments