Use separate counters for inner and outer loop.
The inner and outer loop share a counter. The inner loop resets the counter to zero when entering the loop. I don't believe this is the intention from an examination of the code. Have inner and outer loops use separate counters. Signed-off-by: Tom Carroll <email@example.com>
Showing with 5 additions and 5 deletions