Skip to content

Commit 2da6ca2

Browse files
reduce compilation time (thanks @rafaqz)
1 parent 8ae3e72 commit 2da6ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cfvariable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ Base.Array(v::AbstractVariable{T,N}) where {T,N} = v[ntuple(i -> :, Val(N))...]
570570
function Base.Array(v::AbstractVariable{T,0}) where {T}
571571
a = Array{T,0}(undef,size(v))
572572
# only a single element to load
573-
a .= v
573+
a[] = v[]
574574
return a
575575
end
576576

0 commit comments

Comments
 (0)