aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/GetBits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/GetBits.hpp')
-rw-r--r--chilbert/GetBits.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chilbert/GetBits.hpp b/chilbert/GetBits.hpp
index 66f6f32..288fd25 100644
--- a/chilbert/GetBits.hpp
+++ b/chilbert/GetBits.hpp
@@ -32,9 +32,9 @@ namespace chilbert {
*/
template <class H, class I>
inline void
-getBits(const H& h, const int n, const int i, I& w)
+getBits(const H& h, const size_t n, const size_t i, I& w)
{
- for (int j = 0; j < n; j++) {
+ for (size_t j = 0; j < n; j++) {
setBit(w, j, testBit(h, i + j));
}
}