diff options
author | David Robillard <d@drobilla.net> | 2018-08-11 22:40:03 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:46:25 +0200 |
commit | 50145430b5fb08802bc22a6ae06351a11a091c60 (patch) | |
tree | 4ba0d1c8c5b76e7608fbd8ffbc985ba8a9f09622 /chilbert/SetBits.hpp | |
parent | df0d52f4bd78c2197a88a805a1dd402978df3290 (diff) | |
download | chilbert-50145430b5fb08802bc22a6ae06351a11a091c60.tar.gz chilbert-50145430b5fb08802bc22a6ae06351a11a091c60.tar.bz2 chilbert-50145430b5fb08802bc22a6ae06351a11a091c60.zip |
Clean up types and fix every even remotely reasonable warning
Diffstat (limited to 'chilbert/SetBits.hpp')
-rw-r--r-- | chilbert/SetBits.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chilbert/SetBits.hpp b/chilbert/SetBits.hpp index 1a4874b..0adbbf8 100644 --- a/chilbert/SetBits.hpp +++ b/chilbert/SetBits.hpp @@ -32,9 +32,9 @@ namespace chilbert { */ template <class H, class I> inline void -setBits(H& h, const int n, const int i, const I& w) +setBits(H& h, const size_t n, const size_t i, const I& w) { - for (int j = 0; j < n; j++) { + for (size_t j = 0; j < n; j++) { setBit(h, i + j, testBit(w, j)); } } |