]> www.ginac.de Git - ginac.git/blobdiff - ginac/mul.cpp
- dummy index renaming works better
[ginac.git] / ginac / mul.cpp
index 92e21b3efa4c427f37e2d949a92185eef1d8aaf4..3cfb7ff6c437d4aeb7c82fb87cfc39f436e6588f 100644 (file)
@@ -122,7 +122,7 @@ mul::mul(const ex & lh, const ex & mh, const ex & rh)
 DEFAULT_ARCHIVING(mul)
 
 //////////
-// functions overriding virtual functions from bases classes
+// functions overriding virtual functions from base classes
 //////////
 
 // public
@@ -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);