Skip to content

Commit

Permalink
Fix bad syntax in a degree method (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jun 7, 2023
1 parent b548820 commit 71ff84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/ModulesGraded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ end

function degree(::Type{Vector{Int}}, f::FreeModElem)
@assert is_zm_graded(parent(f))
d = degree(f)isa(f.d, GrpAbFinGenElem) || error("The specified element is not homogeneous.")
d = degree(f)
return Int[d[i] for i=1:ngens(parent(d))]
end

Expand Down

0 comments on commit 71ff84b

Please sign in to comment.