1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

one deepcopy less

This commit is contained in:
kalmar 2017-01-31 11:22:40 +01:00
parent 26e3d74800
commit 666d4f81df

View File

@ -154,7 +154,7 @@ function power_by_squaring{T}(x::GWord{T}, p::Integer)
elseif p == 0 elseif p == 0
return one(x) return one(x)
elseif p == 1 elseif p == 1
return deepcopy(x) return x
elseif p == 2 elseif p == 2
return x*x return x*x
end end