Skip to content

Commit

Permalink
fix: LGTM warnings/alerts
Browse files Browse the repository at this point in the history
Thanks to @siriak for giving the solution at Discord!
Co-authored-by: Andrii Siriak <[email protected]>
  • Loading branch information
Panquesito7 committed Apr 26, 2021
1 parent 2213468 commit b6cc0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_euler/problem_26/sol1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6cc0c5

Please sign in to comment.