Skip to content

Commit 09f5d0f

Browse files
authored
fix bug when passing static parameters (#227)
1 parent f649e4f commit 09f5d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/optimize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function build_compiled_call!(stmt, methname, fcall, typargs, code, idx, nargs,
274274
deleteat!(stmt.args, 2:length(stmt.args))
275275
append!(stmt.args, args)
276276
for i in 1:length(sparams)
277-
push!(stmt.args, :($(Expr(:static_parameter, 1))))
277+
push!(stmt.args, :($(Expr(:static_parameter, i))))
278278
end
279279
return
280280
end

0 commit comments

Comments
 (0)