From 20859304c0e13f4d7a61835fb6912735d98cd3b2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 28 Feb 2023 06:45:24 -0500 Subject: [PATCH] Eliminate a bad code smell. --- score.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/score.c b/score.c index 275a358..4331f7f 100644 --- a/score.c +++ b/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); } } -- 2.31.1