From c7af26771e5fa1fb43b64577b15cff8cd251992f Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 11 Sep 2020 16:54:25 +0200 Subject: [PATCH] fix bug in BitArray== --- libsrc/core/bitarray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/bitarray.cpp b/libsrc/core/bitarray.cpp index 2523ce5f..bc923ef1 100644 --- a/libsrc/core/bitarray.cpp +++ b/libsrc/core/bitarray.cpp @@ -91,7 +91,7 @@ namespace ngcore if(data[i] != other.data[i]) return false; for(auto i : Range(size%CHAR_BIT)) - if(Test(i + size * (size/CHAR_BIT)) != other.Test(i + size * (size/CHAR_BIT))) + if(Test(i + CHAR_BIT * (size/CHAR_BIT)) != other.Test(i + CHAR_BIT * (size/CHAR_BIT))) return false; return true; }