Fix out-of-bounds access in SmallIntegerSet.
This commit is contained in:
parent
175368b334
commit
de89a5a9e1
|
@ -186,7 +186,7 @@ struct SmallIntegerSet(V : uint)
|
|||
uint b = 1u << (i%32);
|
||||
i /= 32;
|
||||
if (i >= m_bits[j].length)
|
||||
m_bits[j].length = nextPOT(i);
|
||||
m_bits[j].length = nextPOT(i+1);
|
||||
m_bits[j][i] |= b;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue