From 7fec22bef11d78c837339e9985669a7d688c6c55 Mon Sep 17 00:00:00 2001 From: skilion Date: Sun, 28 May 2017 19:51:02 +0200 Subject: [PATCH] fix variable type in for loop --- src/qxor.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qxor.d b/src/qxor.d index d59673e3..b7d03f07 100644 --- a/src/qxor.d +++ b/src/qxor.d @@ -35,7 +35,7 @@ struct QuickXor byte low = cast(byte) (bitsInVectorCell - vectorOffset); byte xoredByte = 0; - for (int j = i; j < array.length; j += widthInBits) { + for (size_t j = i; j < array.length; j += widthInBits) { xoredByte ^= array[j]; }