]> www.ginac.de Git - ginac.git/blobdiff - ginac/matrix.cpp
removed a lot of superfluous const_cast<>()s
[ginac.git] / ginac / matrix.cpp
index 9f9f67a82c83b62e76431de79ea4bf4054a05047..b133b6163beb989ea1a7e0f977d2ba85b0b0ed2e 100644 (file)
@@ -237,7 +237,7 @@ ex matrix::subs(const lst & ls, const lst & lr, bool no_pattern) const
 int matrix::compare_same_type(const basic & other) const
 {
        GINAC_ASSERT(is_exactly_of_type(other, matrix));
-       const matrix & o = static_cast<matrix &>(const_cast<basic &>(other));
+       const matrix & o = static_cast<const matrix &>(other);
        
        // compare number of rows
        if (row != o.rows())