Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix @GC.preserve -> GC.@preserve #1927

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/flint/fmpq_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@
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,

Check warning on line 953 in src/flint/fmpq_mpoly.jl

View check run for this annotation

Codecov / codecov/patch

src/flint/fmpq_mpoly.jl#L953

Added line #L953 was not covered by tests
(Ref{QQMPolyRingElem}, Int, Ptr{ZZRingElem}, Ref{QQMPolyRing}),
a, n - 1, exps, parent(a))
return a
Expand Down
2 changes: 1 addition & 1 deletion src/flint/fmpz_mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@
(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,

Check warning on line 913 in src/flint/fmpz_mpoly.jl

View check run for this annotation

Codecov / codecov/patch

src/flint/fmpz_mpoly.jl#L913

Added line #L913 was not covered by tests
(Ref{ZZMPolyRingElem}, Int, Ptr{ZZRingElem}, Ref{ZZMPolyRing}),
a, n - 1, exps, parent(a))
return a
Expand Down
2 changes: 1 addition & 1 deletion src/flint/fq_nmod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading