From a71f99670c5bb0428a64f0eb1efa3ef3d1eddc26 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 8 Aug 2017 19:15:55 +0200 Subject: [PATCH] deepcopy S to avoid external changes --- src/Groups.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Groups.jl b/src/Groups.jl index af2e929..1983a3d 100644 --- a/src/Groups.jl +++ b/src/Groups.jl @@ -395,6 +395,7 @@ end function generate_balls{T<:GroupElem}(S::Vector{T}, Id::T; radius=2, op=*) sizes = Vector{Int}() + S = deepcopy(S) S = unshift!(S, Id) B = [Id] for i in 1:radius