Skip to content

Commit 31f0511

Browse files
committed
Fix the fix
1 parent 58ab6cd commit 31f0511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ncmult.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function multiplyvar(x::PolyVar{false}, v::Vector{PolyVar{false}}, z::Vector{Int
7070
end
7171
i -= 1
7272
while i > 0 && v[i] != x
73-
if i > 1 && v[i] < v[i + 1]
73+
if i < length(v) && v[i] < v[i + 1]
7474
ndrop += 1
7575
end
7676
if ndrop >= droplim2 || (ndrop >= droplim1 && v[i] > x)

0 commit comments

Comments
 (0)