Skip to content

Commit fb77807

Browse files
committed
fix: Revert "fix: LGTM warnings/alerts" commit
1 parent b6cc0c5 commit fb77807

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 (true)
44+
while (rem != 0)
4545
{
4646
rem = (rem * 10) % deno;
4747
if (rem == 0)

0 commit comments

Comments
 (0)