mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-02-23 11:29:56 +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