Skip to content

Commit 334d91e

Browse files
committed
style: make example object const
1 parent d29c96f commit 334d91e

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
@@ -169,7 +169,7 @@ int main() {
169169
// populate the fac array
170170
const uint64_t size = 1e6 + 1;
171171
const uint64_t p = 1e9 + 7;
172-
math::ncr_modulo_p::NCRModuloP ncrObj =
172+
const math::ncr_modulo_p::NCRModuloP ncrObj =
173173
math::ncr_modulo_p::NCRModuloP(size, p);
174174
// test 6Ci for i=0 to 7
175175
for (int i = 0; i <= 7; i++) {

0 commit comments

Comments
 (0)