Skip to content

Commit 8d585af

Browse files
Use symbols instead of accessing fields.
1 parent 3145bd3 commit 8d585af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/UngradedModules/Tensor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ function tensor_product(G::FreeMod...; task::Symbol = :none)
1515
if !all(gs) && !all(!x for x in gs)
1616
error("All factors must either be graded or all must be ungraded.")
1717
end
18-
s = G[1].S
18+
s = symbols(G[1])
1919
t = [[x] for x = 1:ngens(G[1])]
2020
for H = G[2:end]
21-
s = [Symbol("$x \\otimes $y") for x = s for y = H.S]
21+
s = [Symbol("$x \\otimes $y") for x = s for y = symbols(H)]
2222
t = [push!(deepcopy(x), y) for x = t for y = 1:ngens(H)]
2323
end
2424

0 commit comments

Comments
 (0)