fix bug in BitArray==

This commit is contained in:
Christopher Lackner 2020-09-11 16:54:25 +02:00
parent 86fe7f3be7
commit c7af26771e

View File

@ -91,7 +91,7 @@ namespace ngcore
if(data[i] != other.data[i]) if(data[i] != other.data[i])
return false; return false;
for(auto i : Range(size%CHAR_BIT)) 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 false;
return true; return true;
} }