Skip to content

Commit fad75fe

Browse files
authored
fixed index (#119)
1 parent 1357ec6 commit fad75fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nlp.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,8 @@ end
733733
@inbounds @inline offset0(a::C, i) where {C<:ConstraintAug} = offset0(a.f, a.itr, i)
734734
@inbounds @inline offset0(f::F, itr, i) where {P<:Pair,F<:SIMDFunction{P}} =
735735
f.o0 + f.f.first(itr[i], nothing)
736+
@inbounds @inline offset0(f::F, itr, i) where {I <: Integer, P<:Pair{I},F<:SIMDFunction{P}} =
737+
f.o0 + f.f.first
736738
@inbounds @inline offset0(f::F, itr, i) where {T<:Tuple,P<:Pair{T},F<:SIMDFunction{P}} =
737739
f.o0 + idxx(coord(itr, i, f.f.first), Base.size(itr))
738740

0 commit comments

Comments
 (0)