Skip to content

Commit 2efb7c3

Browse files
committed
Added license
1 parent 9b54983 commit 2efb7c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

math/fast_ilog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ int ilog10(ull x)
2222
if (x >= 1000000000000000ull) ans += 16, x /= 10000000000000000ull;
2323
if (x >= 10000000ull) ans += 8, x /= 100000000ull;
2424
if (x >= 1000ull) ans += 4, x /= 10000ull;
25-
if (x >= 10) ans += 2, x /= 100ull;
26-
if (x >= 1) ans++;
25+
if (x >= 10ull) ans += 2, x /= 100ull;
26+
if (x >= 1ull) ans++;
2727
return ans;
2828
}
2929

0 commit comments

Comments
 (0)