Skip to content

Commit 5394fb6

Browse files
committed
Fix
1 parent 07839c9 commit 5394fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monovec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ end
119119
function getZfordegs(n, degs::AbstractVector{Int}, ::Type{Val{C}}, filter::Function) where C
120120
Z = Vector{Vector{Int}}()
121121
# For non-commutative, lower degree need to create a vector of exponent as large as for the highest degree
122-
maxdeg = maximum(degs)
122+
maxdeg = isempty(degs) ? 0 : maximum(degs)
123123
for deg in sort(degs, rev=true)
124124
fillZfordeg!(Z, n, deg, Val{C}, filter, maxdeg)
125125
end

0 commit comments

Comments
 (0)