From 0dd23532ac4fa881be176f8511d20b878404fd86 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 17 May 2017 14:37:22 +0200 Subject: [PATCH] Type-parametrised star(::GroupRingElem) --- src/GroupRings.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index a14fbe9..8592c19 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -296,12 +296,12 @@ end # ############################################################################### -function star(X::GroupRingElem) +function star{T}(X::GroupRingElem{T}) RG = parent(X) isdefined(RG, :basis) || complete(RG) - result = RG() + result = RG(T) for (i,c) in enumerate(X.coeffs) - if c != zero(eltype(X.coeffs)) + if c != zero(T) g = inv(RG.basis[i]) result[g] = c end