Ruby NetDest: add assert for bad element in netdest
This commit is contained in:
parent
6a70ef30a3
commit
6721b3e325
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ NetDest::NetDest()
|
|||
void
|
||||
NetDest::add(MachineID newElement)
|
||||
{
|
||||
assert(bitIndex(newElement.num) < m_bits[vecIndex(newElement)].getSize());
|
||||
m_bits[vecIndex(newElement)].add(bitIndex(newElement.num));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue