Skip to content

Commit 3b49c80

Browse files
authored
Improve inferrability of dims_howmany (#231)
This should be good for performance, and prevents dozens of invalidations when loading packages like Interpolations which add `eltype` methods.
1 parent 43c2769 commit 3b49c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fft.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ unsafe_execute!(plan::r2rFFTWPlan{T},
514514

515515
# Compute dims and howmany for FFTW guru planner
516516
function dims_howmany(X::StridedArray, Y::StridedArray,
517-
sz::Array{Int,1}, region)
518-
reg = Int[region...]
517+
sz::Vector{Int}, region)
518+
reg = Int[region...]::Vector{Int}
519519
if length(unique(reg)) < length(reg)
520520
throw(ArgumentError("each dimension can be transformed at most once"))
521521
end

0 commit comments

Comments
 (0)