tiny optimization in subs()
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 10 Jul 2003 20:40:26 +0000 (20:40 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 10 Jul 2003 20:40:26 +0000 (20:40 +0000)
ginac/basic.cpp

index 9921d3581c80a73d978e06799fd903d01e16b6bb..595d64500c37435b1ea324b39782d07cc72f88c2 100644 (file)
@@ -745,7 +745,7 @@ ex basic::expand(unsigned options) const
 ex basic::subs(const ex & e, unsigned options) const
 {
        if (e.info(info_flags::relation_equal)) {
-               return subs(lst(e), options);
+               return subs(lst(e.lhs()), lst(e.rhs()), options);
        }
        if (!e.info(info_flags::list)) {
                throw(std::invalid_argument("basic::subs(ex): argument must be a list"));