diff --git a/Project.toml b/Project.toml index d2ba159df..90da51e47 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Nemo" uuid = "2edaba10-b0f1-5616-af89-8c11ac63239a" -version = "0.35.1" +version = "0.35.3" [deps] AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d" diff --git a/src/HeckeMiscPoly.jl b/src/HeckeMiscPoly.jl index 7cecbf2c4..695e0d256 100644 --- a/src/HeckeMiscPoly.jl +++ b/src/HeckeMiscPoly.jl @@ -239,7 +239,7 @@ function roots(K::FqPolyRepField, f::FpPolyRingElem) return roots(ff) end -function is_power(a::Union{fqPolyRepFieldElem,FqPolyRepFieldElem,FqFieldElem}, m::Int) +function is_power(a::Union{fpField, FpFieldElem, fqPolyRepFieldElem,FqPolyRepFieldElem,FqFieldElem}, m::Int) if iszero(a) return true, a end @@ -537,6 +537,9 @@ function is_squarefree(f::PolyElem{<:FieldElement}) end function is_squarefree(f::PolyElem{<:RingElement}) + if iszero(f) + return true + end fac = factor_squarefree(f) return all(e <= 1 for (_, e) in fac) end diff --git a/src/Nemo.jl b/src/Nemo.jl index 995802988..e30a9ddab 100644 --- a/src/Nemo.jl +++ b/src/Nemo.jl @@ -107,8 +107,8 @@ end # check whether we are using flint version >= 3.0 (or some recent enough dev version), # which changed the layout of some structs -_ptr = Libc.dlopen(libflint) -if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing +_ptr = Libdl.dlopen(libflint) +if Libdl.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing const NEW_FLINT = true libantic = libflint libarb = libflint @@ -116,7 +116,7 @@ if Libc.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) ! else const NEW_FLINT = false end -Libc.dlclose(_ptr) +Libdl.dlclose(_ptr) ################################################################################ #