]> www.ginac.de Git - ginac.git/blobdiff - ginac/mul.cpp
adjusted for the fact that "A + c" is now rejected by add::eval if A is
[ginac.git] / ginac / mul.cpp
index 92e21b3efa4c427f37e2d949a92185eef1d8aaf4..9bb753a1b77088a723fb8cc570747011d9eab0d7 100644 (file)
@@ -709,11 +709,11 @@ ex mul::expand(unsigned options) const
        }
        if (expanded_seqp)
                delete expanded_seqp;
-
+       
        // Now the only remaining thing to do is to multiply the factors which
        // were not sums into the "last_expanded" sum
        if (is_ex_exactly_of_type(last_expanded, add)) {
-               add const & finaladd = ex_to<add>(last_expanded);
+               const add & finaladd = ex_to<add>(last_expanded);
                exvector distrseq;
                int n = finaladd.nops();
                distrseq.reserve(n);