X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fpower.cpp;h=abbee766cd6b5afa4e16f14b63406a35da2445fb;hb=216d88c993aada2bffffa32100c23fc7fb4c1844;hp=72ec5aa368ae65c3bc8565309e379074e00d134e;hpb=274c1632d78ec31575c4b3b328d75ad95a7855aa;p=ginac.git diff --git a/ginac/power.cpp b/ginac/power.cpp index 72ec5aa3..abbee766 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -139,7 +139,7 @@ void power::print(const print_context & c, unsigned level) const c.s << ')'; // ^-1 is printed as "1.0/" or with the recip() function of CLN - } else if (exponent.compare(_num_1) == 0) { + } else if (exponent.is_equal(_ex_1)) { if (is_a(c)) c.s << "recip("; else