mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 08:24:10 -08:00
Fixes BitSet.hashCode
This commit is contained in:
parent
e43898e573
commit
757c655344
|
@ -107,7 +107,7 @@ public class TBitSet extends TObject implements TCloneable, TSerializable {
|
||||||
for (; i < fullLongs; ++i) {
|
for (; i < fullLongs; ++i) {
|
||||||
longs[i] = data[i * 2] | (data[i * 2 + 1] << 32);
|
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];
|
longs[i] = data[i * 2];
|
||||||
}
|
}
|
||||||
return longs;
|
return longs;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user