diff options
author | Jack Lloyd <[email protected]> | 2018-12-23 16:04:06 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-23 16:04:06 -0500 |
commit | 4322323cc117a7ae6ee1b8725b30e93d45544c4c (patch) | |
tree | 6edbb1fc3fc63c6673ba84416d920c24b1229928 | |
parent | f7f42bb8f26b7c927488d5b21c148199f1890d4c (diff) |
Another try at silencing Coverity on this
-rw-r--r-- | src/lib/utils/bit_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/bit_ops.h b/src/lib/utils/bit_ops.h index 553dae4a2..36a8d0259 100644 --- a/src/lib/utils/bit_ops.h +++ b/src/lib/utils/bit_ops.h @@ -42,7 +42,7 @@ inline T ct_is_zero(T x) template<typename T> inline constexpr bool is_power_of_2(T arg) { - return ((arg != 0 && arg != 1) && ((arg & static_cast<T>(arg-1)) == 0)); + return (arg != 0) && (arg != 1) && ((arg & static_cast<T>(arg-1)) == 0); } /** |