From 62168ea93d23c81172ad07f9ec2f7044d1570681 Mon Sep 17 00:00:00 2001 From: Vladimir Kisil Date: Wed, 22 Apr 2015 21:52:15 +0200 Subject: [PATCH] Fix mul::info(info_flags::nonnegative). Due to an obvious Boolean inversion, this function call always returned the wrong answer. --- ginac/mul.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/mul.cpp b/ginac/mul.cpp index 24cd2fc4..22133a74 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -344,7 +344,7 @@ bool mul::info(unsigned inf) const else return false; } - return (overall_coeff.info(info_flags::negative)? pos : !pos); + return (overall_coeff.info(info_flags::negative)? !pos : pos); } case info_flags::posint: case info_flags::negint: { -- 2.49.0