Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Minor cleanup in decomposer

Commit
1c99b0ff8189f59563973193909af4b511485890
Author
Martin Hořeňovský ·
Parents
64a0f466ec1a

Files · Download .tar.gz

Changes

 include/internal/catch_decomposer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_decomposer.h b/include/internal/catch_decomposer.h
index 443ef2de..a6c02218 100644
--- a/include/internal/catch_decomposer.h
+++ b/include/internal/catch_decomposer.h
@@ -131,7 +131,7 @@ namespace Catch {
 
     public:
         explicit UnaryExpr( LhsT lhs )
-        :   ITransientExpression{ false, lhs ? true : false },
+        :   ITransientExpression{ false, static_cast<bool>(lhs) },
             m_lhs( lhs )
         {}
     };