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/SetBits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chilbert/SetBits.hpp') 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 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)); } } -- cgit v1.2.1