Skip to content

Commit fb3fd9c

Browse files
vil02Panquesito7
andcommitted
style: initialize NCRModuloP::p with 0
Co-authored-by: David Leal <[email protected]>
1 parent d706584 commit fb3fd9c

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
@@ -78,7 +78,7 @@ int64_t modInverse(const int64_t& a, const int64_t& m) {
7878
*/
7979
class NCRModuloP {
8080
private:
81-
const int64_t p; /// the p from (nCr % p)
81+
const int64_t p = 0; /// the p from (nCr % p)
8282
const std::vector<int64_t>
8383
fac; /// stores precomputed factorial(i) % p value
8484

0 commit comments

Comments
 (0)