fix dupe declaration merge snafu

This commit is contained in:
Enno Rehling 2018-12-04 21:16:47 +01:00
parent c2eaf704d1
commit 1a07b3bf66
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ void autostudy_run(scholar scholars[], int nscholars)
}
else {
/* invariant: unit ti can still teach i students */
int s, i = scholars[ti].u->number * STUDENTS_PER_TEACHER;
int i = scholars[ti].u->number * STUDENTS_PER_TEACHER;
/* invariant: unit si has n students that can still be taught */
int s, n = scholars[si].u->number;
for (t = ti, s = si; t != si && s != se; ) {