We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a11568 commit b4a5eddCopy full SHA for b4a5edd
cp-algo/math/fft.hpp
@@ -13,7 +13,7 @@ namespace cp_algo::math::fft {
13
cvector::exec_on_roots(2 * n, size(a), [&](size_t i, point rt) {
14
size_t ti = std::min(i, i - n);
15
auto rem = std::remainder(a[i].rem(), split);
16
- auto quo = (a[i].rem() - rem) / split;
+ auto quo = (ftype(a[i].rem()) - rem) / split;
17
A.set(ti, A.get(ti) + rem * rt);
18
B.set(ti, B.get(ti) + quo * rt);
19
0 commit comments