Skip to content

Commit

Permalink
Widen zeros to NCRing
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 11, 2023
1 parent a655aee commit b643d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AbstractAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 1293 in src/AbstractAlgebra.jl

View check run for this annotation

Codecov / codecov/patch

src/AbstractAlgebra.jl#L1293

Added line #L1293 was not covered by tests

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)
Expand Down

0 comments on commit b643d57

Please sign in to comment.