Skip to content

Commit b6ecff1

Browse files
committed
make MPOLY_CLEANUP a const
1 parent 22f818b commit b6ecff1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/abstractalgebra.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ let
6565
@acrule(~x::ismpoly * ~y::ismpoly => ~x * ~y)
6666
@rule(*(~x) => ~x)
6767
@rule((~x::ismpoly)^(~a::isnonnegint) => (~x)^(~a))]
68-
MPOLY_CLEANUP = Fixpoint(Postwalk(PassThrough(RestartedChain(mpoly_preprocess))))
68+
global const MPOLY_CLEANUP = Fixpoint(Postwalk(PassThrough(RestartedChain(mpoly_preprocess))))
6969
MPOLY_MAKER = Fixpoint(Postwalk(PassThrough(RestartedChain(mpoly_rules))))
7070

71-
global MPOLY_CLEANUP
72-
7371
global to_mpoly
7472
function to_mpoly(t, dicts=_dicts())
7573
# term2sym is only used to assign the same

0 commit comments

Comments
 (0)