From 0ba8740239f4fa443aeee75c9cf1447179fa7e7f Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Thu, 29 Jul 2021 14:04:44 +0200 Subject: [PATCH] missing gc vars --- src/poly/poly.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/poly/poly.jl b/src/poly/poly.jl index af9d752c6..a5fc00cd7 100644 --- a/src/poly/poly.jl +++ b/src/poly/poly.jl @@ -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)