Fixes BitSet.hashCode

This commit is contained in:
konsoletyper 2014-03-21 15:19:45 +04:00
parent e43898e573
commit 757c655344

View File

@ -107,7 +107,7 @@ public class TBitSet extends TObject implements TCloneable, TSerializable {
for (; i < fullLongs; ++i) {
longs[i] = data[i * 2] | (data[i * 2 + 1] << 32);
}
if ((length / 32) % 2 == 1) {
if (((31 + length) / 32) % 2 == 1) {
longs[i] = data[i * 2];
}
return longs;