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

index 778531129a95e1ad236e3bd85de712245dd1ea70..3d4d5122a4471247ae58aae8348cad6d1a1e499e 100644 (file)
@@ -73,7 +73,7 @@ void ex::dbgprinttree() const
 ex ex::expand(unsigned options) const
 {
        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
 ex ex::expand(unsigned options) const
 {
        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);
 }
        else
                return bp->expand(options);
 }