Skip to content

Commit cd314a7

Browse files
committed
Fix issue when calling _core_groebner_basis_array from Oscar
1 parent 2171d26 commit cd314a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/algorithms/groebner-bases.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ function _core_groebner_basis_array(
216216
# coefficient handling depending on field characteristic
217217
if field_char == 0
218218
ptr = reinterpret(Ptr{BigInt}, gb_cf[])
219-
jl_cf = BigInt.([deepcopy(unsafe_load(ptr, i)) for i in 1:nr_terms])
219+
jl_cf = BigInt.(BigInt[deepcopy(unsafe_load(ptr, i)) for i in 1:nr_terms])
220220
else
221221
ptr = reinterpret(Ptr{Int32}, gb_cf[])
222-
jl_cf = Int32.(Base.unsafe_wrap(Array, ptr, nr_terms))
222+
jl_cf = Int32.(Vector{Int32}(Base.unsafe_wrap(Array, ptr, nr_terms)))
223223
end
224224

225225
ccall((:free_f4_julia_result_data, libneogb), Nothing,

0 commit comments

Comments
 (0)