* Some minor optimization glitches.
[ginac.git] / ginac / mul.cpp
index 065455eabb62c08b8b0affc9f7e45b24515331e4..64b090af6ecdd1f721e69617b022625c1ef5df26 100644 (file)
@@ -745,7 +745,7 @@ ex mul::expand(unsigned options) const
  *  pointer, if sequence is unchanged. */
 epvector * mul::expandchildren(unsigned options) const
 {
-       epvector::const_iterator last = seq.end();
+       const epvector::const_iterator last = seq.end();
        epvector::const_iterator cit = seq.begin();
        while (cit!=last) {
                const ex & factor = recombine_pair_to_ex(*cit);