Eliminate a bad code smell.
This commit is contained in:
parent
aa32e8f4d6
commit
20859304c0
1 changed files with 2 additions and 2 deletions
4
score.c
4
score.c
|
@ -126,8 +126,8 @@ void terminate(enum termination mode)
|
|||
for (int i = 1; i <= (int)NCLASSES; i++) {
|
||||
if (classes[i].threshold >= points) {
|
||||
speak(classes[i].message);
|
||||
i = classes[i].threshold + 1 - points;
|
||||
rspeak(NEXT_HIGHER, i, i);
|
||||
int nxt = classes[i].threshold + 1 - points;
|
||||
rspeak(NEXT_HIGHER, nxt, nxt);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue