aboutsummaryrefslogtreecommitdiffstats
path: root/include/chilbert/BoundedBitVec.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-16 21:31:31 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:31:06 -0400
commit311c12ad2ef63109ff73c4dc8ccf6912eb41ba7b (patch)
treebdddcd2ff9bfbc6b5f1c02807e1b859c3c712844 /include/chilbert/BoundedBitVec.hpp
parent5cb9bad2fadd9bfb591efabd630a07e65f4b4cb3 (diff)
downloadchilbert-311c12ad2ef63109ff73c4dc8ccf6912eb41ba7b.tar.gz
chilbert-311c12ad2ef63109ff73c4dc8ccf6912eb41ba7b.tar.bz2
chilbert-311c12ad2ef63109ff73c4dc8ccf6912eb41ba7b.zip
Avoid cast warnings
Diffstat (limited to 'include/chilbert/BoundedBitVec.hpp')
-rw-r--r--include/chilbert/BoundedBitVec.hpp2
1 files changed, 1 insertions, 1 deletions
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{};