]> www.ginac.de Git - ginac.git/blobdiff - ginac/mul.cpp
Fix mul::info(info_flags::nonnegative).
[ginac.git] / ginac / mul.cpp
index f1c0a2f5f12699020072165b20b7ced6bcdc2326..22133a74c06fc72ab9ad2d1a5b30b5f31a9ecc8e 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's products of expressions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2014 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -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: {