Skip to content

Commit

Permalink
missing gc vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tthsqe12 authored and thofma committed Jul 29, 2021
1 parent d06e6c7 commit 0ba8740
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/poly/poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,7 @@ end

function evaluate(a::spoly{T}, C::Vector{T}) where T <: Nemo.RingElem
S = parent(a)
R = base_ring(a)
GC.@preserve C begin
GC.@preserve a C S begin
carr = [c.ptr.cpp_object for c in C]
n = libSingular.maEvalAt(a.ptr, carr, S.ptr)
return base_ring(a)(n)
Expand Down

0 comments on commit 0ba8740

Please sign in to comment.