diff --git a/src/AlgAss/Elem.jl b/src/AlgAss/Elem.jl index 6f7970a8a5..cf71d9197c 100644 --- a/src/AlgAss/Elem.jl +++ b/src/AlgAss/Elem.jl @@ -263,10 +263,10 @@ function getindex(a::GroupAlgebraElem{S, GroupAlgebra{S, T, U}}, g::U) where {S, if !haskey(parent(a).group_to_base, g) return zero(base_ring(parent(a))) else - return a.coeffs_sparse[parent(a).group_to_base[g]] + return a.coeffs_sparse[parent(a).group_to_base[g]]::S end else - return a.coeffs[parent(a).group_to_base[g]] + return a.coeffs[parent(a).group_to_base[g]]::S end end @@ -752,7 +752,7 @@ function show(io::IO, a::AbstractAssociativeAlgebraElem) for (i, ci) in a.coeffs_sparse push!(sum.args, Expr(:call, :*, AbstractAlgebra.expressify(ci, context = io), - AbstractAlgebra.expressify(parent(a).base_to_group[i], context = IOContext(io, :compact => true)))) + Expr(:call, :e, AbstractAlgebra.expressify(parent(a).base_to_group[i], context = IOContext(io, :compact => true))))) end end print(io, AbstractAlgebra.expr_to_string(AbstractAlgebra.canonicalize(sum)))