]> www.ginac.de Git - ginac.git/commitdiff
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 0671123229824a734e3b9c621cd4996bd3ebc58c..52c5e676541eefcdba7f78213298ba7727da7008 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);
 
        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
 }
 
 } // namespace GiNaC