Skip to content

Commit

Permalink
ix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Aug 9, 2024
1 parent 25dfae4 commit f05a0be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rules/jitrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ end
end

@generated function shadow_tuple(::Type{Ann}, ::Val{1}, args::Vararg{Annotation, Nargs}) where {Ann, Nargs}
expr = Vector{Expr}(Nargs, undef)
expr = Vector{Expr}(undef, Nargs)
for i in 1:Nargs
expr[i] = quote
@assert !(args[$i] isa Active)
Expand All @@ -801,9 +801,9 @@ end
end

@generated function shadow_tuple(::Type{Ann}, ::Val{width}, args::Vararg{Annotation, Nargs}) where {Ann, width, Nargs}
wexpr = Vector{Expr}(Nargs, undef)
wexpr = Vector{Expr}(undef, Nargs)
for w in 1:width
expr = Vector{Expr}(Nargs, undef)
expr = Vector{Expr}(undef, Nargs)
for i in Nargs
expr[i] = quote
@assert !(args[$i] isa Active)
Expand Down

0 comments on commit f05a0be

Please sign in to comment.