diff options
| author | Phil Nash | 2012-11-17 10:47:17 +0000 |
|---|---|---|
| committer | Phil Nash | 2012-11-17 10:47:17 +0000 |
| commit | f825d67d71a042c1de20b0a7fdf130eb71b13e27 (patch) | |
| tree | aae6c22a59c6226ead1934a3649ae3ed8f1a993f /include | |
| parent | 08142bfdb69ac8ef90aac1cade378498dd0eca9c (diff) | |
| download | catch3-f825d67d71a042c1de20b0a7fdf130eb71b13e27.tar.gz | |
Tweaked bitfield tests to avoid warnings
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_result_type.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/catch_result_type.h b/include/internal/catch_result_type.h index 9fd23861..5492531e 100644 --- a/include/internal/catch_result_type.h +++ b/include/internal/catch_result_type.h @@ -54,9 +54,9 @@ namespace Catch { return static_cast<ResultDisposition::Flags>( static_cast<int>( lhs ) | static_cast<int>( 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 |