diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 18:39:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | 5d0f04e89192754b8b2de11adcbebcf7919e3a08 (patch) | |
tree | e7230809b95b60cfe8d81820dd395bbc8ba88e00 | |
parent | af4d993a30cfde6df322fb58600b25faef424489 (diff) | |
download | chilbert-5d0f04e89192754b8b2de11adcbebcf7919e3a08.tar.gz chilbert-5d0f04e89192754b8b2de11adcbebcf7919e3a08.tar.bz2 chilbert-5d0f04e89192754b8b2de11adcbebcf7919e3a08.zip |
Use bool literals
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | include/chilbert/detail/MultiBitVec.hpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy index de1d754..f9bed5d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -28,7 +28,6 @@ Checks: > -hicpp-explicit-conversions, -llvm-header-guard, -llvmlibc-*, - -modernize-use-bool-literals, -modernize-use-trailing-return-type, -readability-avoid-const-params-in-decls, -readability-convert-member-functions-to-static, diff --git a/include/chilbert/detail/MultiBitVec.hpp b/include/chilbert/detail/MultiBitVec.hpp index 2896c7c..ca48a94 100644 --- a/include/chilbert/detail/MultiBitVec.hpp +++ b/include/chilbert/detail/MultiBitVec.hpp @@ -370,7 +370,7 @@ gray_code_inv(MultiBitVec<Derived>& value) using Rack = typename MultiBitVec<Derived>::Rack; constexpr std::array<Rack, 2> masks{Rack{0}, ~Rack{0}}; - bool s = 0; + bool s = false; for (size_t ri = 0; ri < value.num_racks(); ++ri) { const size_t i = value.num_racks() - ri - 1; |