Skip to content

Commit 9835049

Browse files
committed
style: make NCRModuloP::ncr const
1 parent 141df23 commit 9835049

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
@@ -104,7 +104,7 @@ class NCRModuloP {
104104
* @params[in] the numbers 'n', 'r' and 'p'
105105
* @returns the value nCr % p
106106
*/
107-
int64_t ncr(const uint64_t& n, const uint64_t& r) {
107+
int64_t ncr(const uint64_t& n, const uint64_t& r) const {
108108
// Base cases
109109
if (r > n) {
110110
return 0;

0 commit comments

Comments
 (0)