diff options
| author | Leitwolf11 | 2026-10-31 20:20:48 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-31 20:20:48 +0300 |
| commit | e273973f9bc365a646fad427169416c37da28e98 (patch) | |
| tree | 2e1cab1421774356aa09ffe2acde9ee9da58142a | |
| parent | 9e1687de6064756f470889e43dd69dfbb2f4ae61 (diff) | |
| download | catch3-fix/strict-header-warnings.tar.gz | |
Convert to double in the coverage report explicitlyfix/strict-header-warnings
Dividing a long long by 10.0 is an implicit conversion, which fails in a
project that builds its tests with -Wimplicit-int-float-conversion and
warnings as errors, as Tala does.
| -rw-r--r-- | extras/catch_amalgamated.cpp | 2 | ||||
| -rw-r--r-- | extras/catch_amalgamated.hpp | 2 | ||||
| -rw-r--r-- | extras/catch_amalgamated_third_party.hpp | 2 | ||||
| -rw-r--r-- | src/Progmasoft/Catch3/Property.hpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/extras/catch_amalgamated.cpp b/extras/catch_amalgamated.cpp index 6048e0a2..3151faf3 100644 --- a/extras/catch_amalgamated.cpp +++ b/extras/catch_amalgamated.cpp @@ -7,7 +7,7 @@ // SPDX-License-Identifier: BSL-1.0 // Catch3 v0.3.0, on the Catch2 v3.16.1 engine -// Generated: 2026-10-31 13:33:37.309963 +// Generated: 2026-10-31 20:20:20.891771 // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. diff --git a/extras/catch_amalgamated.hpp b/extras/catch_amalgamated.hpp index 48e54fc3..f26b0811 100644 --- a/extras/catch_amalgamated.hpp +++ b/extras/catch_amalgamated.hpp @@ -7,7 +7,7 @@ // SPDX-License-Identifier: BSL-1.0 // Catch3 v0.3.0, on the Catch2 v3.16.1 engine -// Generated: 2026-10-31 13:33:37.220554 +// Generated: 2026-10-31 20:20:20.604513 // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. diff --git a/extras/catch_amalgamated_third_party.hpp b/extras/catch_amalgamated_third_party.hpp index 3a0d2e95..6a48d4dd 100644 --- a/extras/catch_amalgamated_third_party.hpp +++ b/extras/catch_amalgamated_third_party.hpp @@ -1,5 +1,5 @@ // Catch3 v0.3.0: yyjson and pugixml for catch_amalgamated.cpp -// Generated: 2026-10-31 13:33:37.396913 +// Generated: 2026-10-31 20:20:21.165039 // ---------------------------------------------------------- // This file is an amalgamation of src/Progmasoft/Runner/Yyjson.inl, // src/Progmasoft/PugiXml.inl and the libraries they include from diff --git a/src/Progmasoft/Catch3/Property.hpp b/src/Progmasoft/Catch3/Property.hpp index 1b9ffdaf..5962eaaf 100644 --- a/src/Progmasoft/Catch3/Property.hpp +++ b/src/Progmasoft/Catch3/Property.hpp @@ -188,8 +188,8 @@ namespace Progmasoft::Catch3 { output << "\n " << statistic.Label << ": " << statistic.Count << " (" - << static_cast<long long>(statistic.Percentage * 10.0 - + 0.5) + << static_cast<double>(static_cast<long long>( + statistic.Percentage * 10.0 + 0.5)) / 10.0 << "%"; if (statistic.Required > 0.0) |