From 8a1bf7ee2429cc42bfb684b8258fadfad113581e Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Fri, 6 Apr 2001 23:39:47 +0000 Subject: [PATCH] something like 2/3*a is no longer printed as (2/3)*a --- ginac/add.cpp | 4 ++-- ginac/mul.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ginac/add.cpp b/ginac/add.cpp index 0dd7dc9c..cfcae9bc 100644 --- a/ginac/add.cpp +++ b/ginac/add.cpp @@ -192,9 +192,9 @@ void add::print(const print_context & c, unsigned level) const !coeff.is_equal(_num_1())) { if (coeff.is_rational()) { if (coeff.is_negative()) - (-coeff).print(c, precedence); + (-coeff).print(c); else - coeff.print(c, precedence); + coeff.print(c); } else { if (coeff.csgn() == -1) (-coeff).print(c, precedence); diff --git a/ginac/mul.cpp b/ginac/mul.cpp index 82b721e3..b42fcfe4 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -192,9 +192,9 @@ void mul::print(const print_context & c, unsigned level) const !coeff.is_equal(_num_1())) { if (coeff.is_rational()) { if (coeff.is_negative()) - (-coeff).print(c, precedence); + (-coeff).print(c); else - coeff.print(c, precedence); + coeff.print(c); } else { if (coeff.csgn() == -1) (-coeff).print(c, precedence); -- 2.47.0