From 1a07b3bf66177730a10b2d94a464620925ccc3a3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 4 Dec 2018 21:16:47 +0100 Subject: [PATCH] fix dupe declaration merge snafu --- src/automate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/automate.c b/src/automate.c index e79bc4fdc..7fd0c5d62 100644 --- a/src/automate.c +++ b/src/automate.c @@ -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; ) {