From b643d57f9448209a329f114189b4099ad2f149c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Mon, 11 Sep 2023 16:14:59 +0200 Subject: [PATCH] Widen `zeros` to `NCRing` --- src/AbstractAlgebra.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AbstractAlgebra.jl b/src/AbstractAlgebra.jl index b0c4f60bc7..d56d6d44c3 100644 --- a/src/AbstractAlgebra.jl +++ b/src/AbstractAlgebra.jl @@ -1290,9 +1290,9 @@ include("Deprecations.jl") # ############################################################################### -Array(R::Ring, r::Int...) = Array{elem_type(R)}(undef, r) +Array(R::NCRing, r::Int...) = Array{elem_type(R)}(undef, r) -function zeros(R::Ring, r::Int...) +function zeros(R::NCRing, r::Int...) T = elem_type(R) A = Array{T}(undef, r) for i in eachindex(A)