From c53974269eb9fbda996bb6f232280077caab11e1 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Thu, 11 Dec 2003 21:16:55 +0000 Subject: [PATCH] optimization to ex::expand() --- ginac/ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.49.0