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 9921d35..595d645 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"));