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 /src | |
| 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Progmasoft/Catch3/Property.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |