From: Christian Bauer Date: Thu, 11 Dec 2003 21:16:55 +0000 (+0000) Subject: optimization to ex::expand() X-Git-Tag: release_1-2-0~45 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=c53974269eb9fbda996bb6f232280077caab11e1;p=ginac.git optimization to ex::expand() --- diff --git a/ginac/ex.cpp b/ginac/ex.cpp index 77853112..3d4d5122 100644 --- a/ginac/ex.cpp +++ b/ginac/ex.cpp @@ -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); }