fix: LGTM warnings/alerts

Thanks to @siriak for giving the solution at Discord!
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
David Leal 2021-04-25 19:34:08 -05:00
parent 221346808a
commit b6cc0c5601
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68

View File

@ -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)