fix reason:
insert a line to ensure that rs[n] is created with at least 1 element.
looked for origin of n's value to ensure that it was >= 1.
found a chain of assumptions that the value is good, without verification.
current code is brittle, so add assert() for protection.
fix suggestion 2010-07-25:
45.1 assert(n > 0);
fix reason:
insert a line to ensure that rs[n] is created with at least 1 element.
looked for origin of n's value to ensure that it was >= 1.
found a chain of assumptions that the value is good, without verification.
current code is brittle, so add assert() for protection.