Skip to content

Commit b6cc0c5

Browse files
committed
fix: LGTM warnings/alerts
Thanks to @siriak for giving the solution at Discord! Co-authored-by: Andrii Siriak <[email protected]>
1 parent 2213468 commit b6cc0c5

File tree

1 file changed

+1
-1
lines changed
  • project_euler/problem_26

1 file changed

+1
-1
lines changed

project_euler/problem_26/sol1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
4141
// printf("1/%-4u\t ", deno);
4242
unsigned short index = 0, num_digits;
4343

44-
while (rem != 0)
44+
while (true)
4545
{
4646
rem = (rem * 10) % deno;
4747
if (rem == 0)

0 commit comments

Comments
 (0)