catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.51k stars 3.04k forks source link

Explicitly cast values of different types #2875

Open svenihoney opened 4 months ago

svenihoney commented 4 months ago

Description

In case the warning -Werror=conversion is active with GCC, the warnings about "conversion from A to B may change value" lead to a compilation error. This explicitly convert the values to address these warnings.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.11%. Comparing base (4e8d92b) to head (6bf7dc9). Report is 35 commits behind head on devel.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #2875 +/- ## ========================================== + Coverage 91.10% 91.11% +0.01% ========================================== Files 198 198 Lines 8493 8493 ========================================== + Hits 7737 7738 +1 + Misses 756 755 -1 ```