Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joehuchette committed Feb 1, 2017
1 parent b7e27aa commit a0b5f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuMPArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Base.getindex(d::JuMPArray, ::Colon) = d.innerArray[:]
Expr(:call, :getindex, :(d.innerArray), _to_cartesian(d,NT,idx)...)
end

@generated function Base.setindex!{T,N,NT<:NTuple}(d::JuMPArray{T,N,NT}, v::T, idx...)
@generated function Base.setindex!{T,N,NT<:NTuple}(d::JuMPArray{T,N,NT}, v, idx...)
if N != length(idx)
error("Indexed into a JuMPArray with $(length(idx)) indices (expected $N indices)")
end
Expand Down

0 comments on commit a0b5f0d

Please sign in to comment.