From b6cc0c5601b5549eedae8e1e5141bba5738ecf5d Mon Sep 17 00:00:00 2001 From: David Leal Date: Sun, 25 Apr 2021 19:34:08 -0500 Subject: [PATCH] fix: LGTM warnings/alerts Thanks to @siriak for giving the solution at Discord! Co-authored-by: Andrii Siriak --- project_euler/problem_26/sol1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project_euler/problem_26/sol1.c b/project_euler/problem_26/sol1.c index 66decd32..de28cf37 100644 --- a/project_euler/problem_26/sol1.c +++ b/project_euler/problem_26/sol1.c @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) // printf("1/%-4u\t ", deno); unsigned short index = 0, num_digits; - while (rem != 0) + while (true) { rem = (rem * 10) % deno; if (rem == 0)