style: do not suppress lossy-conversions (#6206)

This commit is contained in:
Piotr Idzik
2025-03-31 19:20:58 +02:00
committed by GitHub
parent 45148874e8
commit 0072ed9aa7
4 changed files with 11 additions and 9 deletions

View File

@ -56,7 +56,7 @@ public final class AliquotSum {
// if n is a perfect square then its root was added twice in above loop, so subtracting root
// from sum
if (root == (int) root) {
sum -= root;
sum -= (int) root;
}
return sum;
}