Skip to content

Commit 349bbdc

Browse files
committed
proper conversion to ftype
1 parent dfff1b9 commit 349bbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/math/fft.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace cp_algo::math::fft {
1515
split = int(std::sqrt(base::mod())) + 1;
1616
cvector::exec_on_roots(2 * n, std::min(n, size(a)), [&](size_t i, auto rt) {
1717
auto splt = [&](size_t i) {
18-
ftype ai = i < size(a) ? a[i].rem() : 0;
18+
auto ai = ftype(i < size(a) ? a[i].rem() : 0);
1919
auto rem = std::remainder(ai, split);
2020
auto quo = (ai - rem) / split;
2121
return std::pair{rem, quo};

0 commit comments

Comments
 (0)