From 5d0f04e89192754b8b2de11adcbebcf7919e3a08 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 18:39:22 -0400 Subject: Use bool literals --- .clang-tidy | 1 - include/chilbert/detail/MultiBitVec.hpp | 2 +- 2 files changed, 1 insertion(+), 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& value) using Rack = typename MultiBitVec::Rack; constexpr std::array 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; -- cgit v1.2.1