]> www.ginac.de Git - ginac.git/blobdiff - ginac/ex.cpp
optimization to ex::expand()
[ginac.git] / 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
-               return *bp;
+               return *this;
        else
                return bp->expand(options);
 }