]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.cpp
* Fix thinkos in print_csrc context.
[ginac.git] / ginac / power.cpp
index 72ec5aa368ae65c3bc8565309e379074e00d134e..abbee766cd6b5afa4e16f14b63406a35da2445fb 100644 (file)
@@ -139,7 +139,7 @@ void power::print(const print_context & c, unsigned level) const
                        c.s << ')';
 
                // <expr>^-1 is printed as "1.0/<expr>" or with the recip() function of CLN
-               } else if (exponent.compare(_num_1) == 0) {
+               } else if (exponent.is_equal(_ex_1)) {
                        if (is_a<print_csrc_cl_N>(c))
                                c.s << "recip(";
                        else