diff --git a/src/flint/fmpq_mpoly.jl b/src/flint/fmpq_mpoly.jl index f7e1640ac..0c22bc10a 100644 --- a/src/flint/fmpq_mpoly.jl +++ b/src/flint/fmpq_mpoly.jl @@ -950,7 +950,7 @@ function set_exponent_vector!(a::QQMPolyRingElem, n::Int, exps::Vector{ZZRingEle ccall((:fmpq_mpoly_resize, libflint), Nothing, (Ref{QQMPolyRingElem}, Int, Ref{QQMPolyRing}), a, n, a.parent) end - @GC.preserve exps ccall((:fmpq_mpoly_set_term_exp_fmpz, libflint), Nothing, + GC.@preserve exps ccall((:fmpq_mpoly_set_term_exp_fmpz, libflint), Nothing, (Ref{QQMPolyRingElem}, Int, Ptr{ZZRingElem}, Ref{QQMPolyRing}), a, n - 1, exps, parent(a)) return a diff --git a/src/flint/fmpz_mpoly.jl b/src/flint/fmpz_mpoly.jl index b7f53b60a..5f1520ffb 100644 --- a/src/flint/fmpz_mpoly.jl +++ b/src/flint/fmpz_mpoly.jl @@ -910,7 +910,7 @@ function set_exponent_vector!(a::ZZMPolyRingElem, n::Int, exps::Vector{ZZRingEle (Ref{ZZMPolyRingElem}, Int, Ref{ZZMPolyRing}), a, n, a.parent) return a end - @GC.preserve exps ccall((:fmpz_mpoly_set_term_exp_fmpz, libflint), Nothing, + GC.@preserve exps ccall((:fmpz_mpoly_set_term_exp_fmpz, libflint), Nothing, (Ref{ZZMPolyRingElem}, Int, Ptr{ZZRingElem}, Ref{ZZMPolyRing}), a, n - 1, exps, parent(a)) return a diff --git a/src/flint/fq_nmod.jl b/src/flint/fq_nmod.jl index f6be34cad..11a0ef1a8 100644 --- a/src/flint/fq_nmod.jl +++ b/src/flint/fq_nmod.jl @@ -44,7 +44,7 @@ function coeff(x::fqPolyRepFieldElem, n::Int) end function coeffs_raw(x::fqPolyRepFieldElem) - @GC.preserve x begin + GC.@preserve x begin len = degree(parent(x)) V = unsafe_wrap(Vector{UInt}, reinterpret(Ptr{UInt}, x.coeffs), x.length) Vcopy = Vector{UInt}(undef, len)