Skip to content

Commit

Permalink
Update src/Rings/MPolyMap/MPolyAnyMap.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrandhorst authored Oct 1, 2024
1 parent 733b8f1 commit 1892dab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rings/MPolyMap/MPolyAnyMap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const _DomainTypes = Union{MPolyRing, MPolyQuoRing}
# call the inner one with this argument set to `false`. This way the check
# can safely be disabled.
if check_for_mapping_of_vars && all(_is_gen, img_gens) && _allunique(img_gens)
result.variable_indices = [findfirst(==(x), gens(codomain)) for x in img_gens]
gens_codomain = gens(codomain)
result.variable_indices = [findfirst(==(x), gens_codomain) for x in img_gens]
end
return result
end
Expand Down

0 comments on commit 1892dab

Please sign in to comment.