diff --git a/include/internal/catch_result_type.h b/include/internal/catch_result_type.h index 9fd23861..2b2ceb77 100644 --- a/include/internal/catch_result_type.h +++ b/include/internal/catch_result_type.h @@ -54,9 +54,9 @@ namespace Catch { return static_cast( static_cast( lhs ) | static_cast( rhs ) ); } - inline bool shouldContinueOnFailure( int flags ) { return flags & ResultDisposition::ContinueOnFailure; } - inline bool shouldNegate( int flags ) { return flags & ResultDisposition::NegateResult; } - inline bool shouldSuppressFailure( int flags ) { return flags & ResultDisposition::SuppressFail; } + inline bool shouldContinueOnFailure( int flags ) { return ((flags & ResultDisposition::ContinueOnFailure) != 0); } + inline bool shouldNegate( int flags ) { return ((flags & ResultDisposition::NegateResult) != 0); } + inline bool shouldSuppressFailure( int flags ) { return ((flags & ResultDisposition::SuppressFail) != 0); } } // end namespace Catch