aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/SetBits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/SetBits.hpp')
-rw-r--r--chilbert/SetBits.hpp4
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));
}
}