From b3bec6b29e05fd6043b3b5d4df2fffe4104edd7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Wed, 20 Nov 2024 17:20:37 +0100 Subject: [PATCH] fix: some type stability --- src/AlgAss/Elem.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AlgAss/Elem.jl b/src/AlgAss/Elem.jl index 66b5438ea1..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