Fixed bug in comparison of fderivatives.
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Mon, 26 Jun 2006 13:55:33 +0000 (13:55 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Mon, 26 Jun 2006 13:55:33 +0000 (13:55 +0000)
ginac/fderivative.cpp

index 0671123..52c5e67 100644 (file)
@@ -214,7 +214,7 @@ bool fderivative::match_same_type(const basic & other) const
        GINAC_ASSERT(is_a<fderivative>(other));
        const fderivative & o = static_cast<const fderivative &>(other);
 
-       return parameter_set == o.parameter_set;
+       return parameter_set == o.parameter_set && inherited::match_same_type(other);
 }
 
 } // namespace GiNaC