]> www.ginac.de Git - ginac.git/commitdiff
optimization to ex::expand()
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 11 Dec 2003 21:17:07 +0000 (21:17 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 11 Dec 2003 21:17:07 +0000 (21:17 +0000)
ginac/ex.cpp

index 3c6d504876e826b37e288c6261f2d197ab6e27ea..ebb8f651c2d3660cb9d8448fcb91456946572498 100644 (file)
@@ -77,7 +77,7 @@ ex ex::expand(unsigned options) const
 {
        GINAC_ASSERT(bp!=0);
        if (options == 0 && (bp->flags & status_flags::expanded)) // The "expanded" flag only covers the standard options; someone might want to re-expand with different options
-               return *bp;
+               return *this;
        else
                return bp->expand(options);
 }