Skip to content

Commit f888022

Browse files
authored
fix bug in plan_r2r! for num_threads != nothing (#298)
1 parent b0f8c78 commit f888022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fft.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ function plan_r2r!(X::StridedArray{T,N}, kinds, region;
987987
num_threads::Union{Nothing, Integer} = nothing) where {T<:fftwNumber,N}
988988
if num_threads !== nothing
989989
plan = set_num_threads(num_threads) do
990-
plan_r2r(X, kinds, region; flags = flags, timelimit = timelimit)
990+
plan_r2r!(X, kinds, region; flags = flags, timelimit = timelimit)
991991
end
992992
return plan
993993
end

0 commit comments

Comments
 (0)