LOOP: Correctly implement MXLOOPS and add a test.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Nov 2011 23:11:59 +0000 (16:11 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 6 Nov 2011 16:19:23 +0000 (08:19 -0800)
commit681bd9eab15d80bf2e424033a249f54548b342f4
treed641187857e7ac519ae7b60581e56c655c661a2f
parent2a9e84da09c7c9a604471fb9591e401588db49d1
LOOP: Correctly implement MXLOOPS and add a test.

Previously the MXLOOPS value was implemented incorrectly: the
loop would actually iterate MXLOOPS+1 times.  This commit fixes
the problem.
src/language/control/loop.c
tests/language/control/loop.at