Skip to content

Commit 6081f85

Browse files
committed
style: use uint64_t as a type of loop counter
1 parent b60ed56 commit 6081f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

math/ncr_modulo_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class NCRModuloP {
4242
p = mod;
4343
fac = std::vector<uint64_t>(size + 1);
4444
fac[0] = 1;
45-
for (std::size_t i = 1; i <= size; i++) {
45+
for (uint64_t i = 1; i <= size; i++) {
4646
fac[i] = (fac[i - 1] * i) % p;
4747
}
4848
}

0 commit comments

Comments
 (0)