diff options
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | include/chilbert/BoundedBitVec.hpp | 2 | ||||
-rw-r--r-- | include/chilbert/DynamicBitVec.hpp | 2 | ||||
-rw-r--r-- | include/chilbert/StaticBitVec.hpp | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/.clang-tidy b/.clang-tidy index 58b793d..b8924f8 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -15,7 +15,6 @@ Checks: > -fuchsia-default-arguments-calls, -fuchsia-default-arguments-declarations, -fuchsia-overloaded-operator, - -google-readability-casting, -google-runtime-int, -google-runtime-references, -llvmlibc-*, diff --git a/include/chilbert/BoundedBitVec.hpp b/include/chilbert/BoundedBitVec.hpp index 6fe5d2a..ad9b9da 100644 --- a/include/chilbert/BoundedBitVec.hpp +++ b/include/chilbert/BoundedBitVec.hpp @@ -112,7 +112,7 @@ public: private: static constexpr size_t calculate_num_racks(const size_t bits) { - return (std::max(bits, size_t(1)) + bits_per_rack - 1) / bits_per_rack; + return (std::max(bits, size_t{1}) + bits_per_rack - 1U) / bits_per_rack; } std::array<Rack, calculate_num_racks(MaxN)> m_racks{}; diff --git a/include/chilbert/DynamicBitVec.hpp b/include/chilbert/DynamicBitVec.hpp index 895860c..2134839 100644 --- a/include/chilbert/DynamicBitVec.hpp +++ b/include/chilbert/DynamicBitVec.hpp @@ -117,7 +117,7 @@ public: private: static size_t calculate_num_racks(const size_t bits) { - return (std::max(bits, size_t(1)) + bits_per_rack - 1) / bits_per_rack; + return (std::max(bits, size_t{1}) + bits_per_rack - 1U) / bits_per_rack; } static RacksPtr make_racks(const size_t n) diff --git a/include/chilbert/StaticBitVec.hpp b/include/chilbert/StaticBitVec.hpp index 1cd59b0..d1481cc 100644 --- a/include/chilbert/StaticBitVec.hpp +++ b/include/chilbert/StaticBitVec.hpp @@ -105,7 +105,7 @@ public: /// Return the number of racks static constexpr size_t num_racks() { - return (std::max(N, size_t(1)) + bits_per_rack - 1) / bits_per_rack; + return (std::max(N, size_t{1}) + bits_per_rack - 1U) / bits_per_rack; } private: |