Change 'for (i=1; i<=n;...' to 'for (i=0; i<n; ...)'.

The changes fix possibly problematical cases
 (not clear upon quick inspection).

Also: fix several bugs wherein an inner 'for' loop used
the same index variable name as an outer loop thus
messing up the outerloop.

##backport


svn path=/trunk/; revision=45476
This commit is contained in:
Bill Meier 2012-10-11 19:14:29 +00:00
parent 552a9c6b1e
commit b2cb4007e3
1 changed files with 341 additions and 339 deletions

File diff suppressed because it is too large Load Diff