Skip to content

Commit

Permalink
fix for polynomial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydellavecchia committed Sep 11, 2023
1 parent 261c453 commit 1c5ea6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Serialization/Fields.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ function load_object(s::DeserializerState,
dict::Dict{Symbol, Any})
def_pols = load_typed_object(s, dict[:def_pols])
vars = map(Symbol, dict[:vars])
K, _ = number_field(Array(def_pols), vars, cached=false)
# fix since numberfield doesn't accept PolyRingElem vectors
array_pols = Array{typeof(def_pols[1]), 1}(def_pols)
K, _ = number_field(array_pols, vars, cached=false)
return K
end

Expand Down

0 comments on commit 1c5ea6d

Please sign in to comment.