From 392214b697eedf782b2ff3094dc55dba86946529 Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 6 Jul 2017 09:04:48 +0200 Subject: [PATCH] fix: don't shadow gens function --- src/AutGroup.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AutGroup.jl b/src/AutGroup.jl index 01f8d8d..e5d6540 100644 --- a/src/AutGroup.jl +++ b/src/AutGroup.jl @@ -182,8 +182,8 @@ end hash(s::AutSymbol, h::UInt) = hash(s.str, hash(s.pow, hash(:AutSymbol, h))) function hash(g::AutGroupElem, h::UInt) - gens = generators(parent(g).objectGroup) - return hash(g(gens), hash(typeof(g), hash(parent(g), h))) + gs = gens(parent(g).objectGroup) + return hash(g(gs), hash(typeof(g), hash(parent(g), h))) end function change_pow(s::AutSymbol, n::Int) @@ -233,8 +233,8 @@ end function (==)(g::AutGroupElem, h::AutGroupElem) parent(g) == parent(h) || return false G = parent(g).objectGroup - gens = generators(G) - return g(gens) == h(gens) + gs = gens(G) + return g(gs) == h(gs) end ###############################################################################