Fix MSC compiler warning.
authorRichard Kreckel <kreckel@ginac.de>
Sun, 6 Nov 2016 18:41:47 +0000 (19:41 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 6 Nov 2016 18:41:47 +0000 (19:41 +0100)
Thanks to Jan Rheinländer for reporting this.

ginac/numeric.cpp

index 74e20e8a9c85833803c96ccf0bbd53217bcf455e..948409e334bf6245c2384f915b1f6543f268dbd2 100644 (file)
@@ -442,7 +442,7 @@ static void print_real_csrc(const print_context & c, const cln::cl_R & x)
                // Rational number
                const cln::cl_I numer = cln::numerator(cln::the<cln::cl_RA>(x));
                const cln::cl_I denom = cln::denominator(cln::the<cln::cl_RA>(x));
                // Rational number
                const cln::cl_I numer = cln::numerator(cln::the<cln::cl_RA>(x));
                const cln::cl_I denom = cln::denominator(cln::the<cln::cl_RA>(x));
-               if (cln::plusp(x) > 0) {
+               if (cln::plusp(x)) {
                        c.s << "(";
                        print_integer_csrc(c, numer);
                } else {
                        c.s << "(";
                        print_integer_csrc(c, numer);
                } else {