don't construct parent(::WreatProductElem) when not necessary

This commit is contained in:
kalmar 2017-07-21 14:30:48 +02:00
parent 7c1a96b64e
commit 68df946c81
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ doc"""
###############################################################################
function deepcopy_internal(g::WreathProductElem, dict::ObjectIdDict)
G = parent(g)
return G(deepcopy(g.n), deepcopy(g.p))
return WreathProductElem(deepcopy(g.n), deepcopy(g.p))
end
function hash(G::WreathProduct, h::UInt)