summaryrefslogtreecommitdiff
path: root/math/shortModInv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/shortModInv.cpp')
-rw-r--r--math/shortModInv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/shortModInv.cpp b/math/shortModInv.cpp
index 244bacf..f696cce 100644
--- a/math/shortModInv.cpp
+++ b/math/shortModInv.cpp
@@ -1,3 +1,3 @@
ll multInv(ll x, ll m) { // x^{-1} mod m
- return 1 < x ? m - inv(m % x, x) * m / x : 1;
+ return 1 < x ? m - multInv(m % x, x) * m / x : 1;
}