summaryrefslogtreecommitdiff
path: root/math/bigint.cpp
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2023-01-10 11:40:09 +0100
committermzuenni <michi.zuendorf@gmail.com>2023-01-10 11:40:09 +0100
commitfd1f2b36e95c03625297b7b8cba3b1a04a0cc0ed (patch)
treeb143619750b90fbfa45a98be9ea56904d1a7129d /math/bigint.cpp
parent8faa84ca282d51e9ce4fef535e68325adabcebad (diff)
change whitespaces
Diffstat (limited to 'math/bigint.cpp')
-rw-r--r--math/bigint.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/math/bigint.cpp b/math/bigint.cpp
index 1753200..f8e3507 100644
--- a/math/bigint.cpp
+++ b/math/bigint.cpp
@@ -86,8 +86,7 @@ struct bigint {
ll s2 = r.a.size() <= b.a.size() - 1 ? 0 : r.a[b.a.size() - 1];
ll d = (base * s1 + s2) / b.a.back();
r -= b * d;
- while (r < 0)
- r += b, --d;
+ while (r < 0) r += b, --d;
q.a[i] = d;
}
q.sign = a1.sign * b1.sign;