From 50145430b5fb08802bc22a6ae06351a11a091c60 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Aug 2018 22:40:03 +0200 Subject: Clean up types and fix every even remotely reasonable warning --- chilbert/GetBits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chilbert/GetBits.hpp') 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 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)); } } -- cgit v1.2.1