mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -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) {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user