1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-04 10:06:27 +01:00

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

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)