Skip to content

Commit d3795b7

Browse files
committed
Fix usage of MPolyBuildCtx
1 parent 407722b commit d3795b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interfaces/nemo.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ function _convert_finite_field_array_to_abstract_algebra(
101101
continue
102102
end
103103
end
104-
g = MPolyBuildCtx(R)
105104
if bcf[len+1] == 0
106-
g.poly = R(0)
105+
push!(basis, R(0))
107106
else
107+
g = MPolyBuildCtx(R)
108108
for j in 1:blen[i]
109109
push_term!(g, CR(bcf[len+j]),
110110
convert(Vector{Int}, bexp[(len+j-1)*nr_vars+1:(len+j)*nr_vars]))
111111
end
112+
push!(basis, finish(g))
112113
end
113114
len += blen[i]
114-
push!(basis, g.poly)
115115
end
116116

117117
return basis

0 commit comments

Comments
 (0)