Skip to content

Commit 84657b2

Browse files
committed
fix: Use std::swap for clarity in fft_change function
1 parent 346296b commit 84657b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weilycoder/poly/fft_utility.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ template <typename T> void fft_change(std::vector<T> &a) {
3838
if (i & 1)
3939
rev[i] |= n >> 1;
4040
if (i < rev[i])
41-
swap(a[i], a[rev[i]]);
41+
std::swap(a[i], a[rev[i]]);
4242
}
4343
}
4444
} // namespace weilycoder

0 commit comments

Comments
 (0)