Skip to content

Commit

Permalink
fix: some type stability
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Nov 20, 2024
1 parent ca029b7 commit b3bec6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AlgAss/Elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 266 in src/AlgAss/Elem.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAss/Elem.jl#L266

Added line #L266 was not covered by tests
end
else
return a.coeffs[parent(a).group_to_base[g]]
return a.coeffs[parent(a).group_to_base[g]]::S
end
end

Expand Down

0 comments on commit b3bec6b

Please sign in to comment.