From 0b94fe8f8567e31268adede7c7ea671ef80a8558 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Thu, 4 Apr 2019 20:21:41 +0200 Subject: [PATCH] Fix cl_N output of negative fixnums. Thanks to Feng Feng for reporting this. --- ginac/numeric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index 2b43193e..4cfd7e4a 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -506,7 +506,7 @@ static void print_real_cl_N(const print_context & c, const cln::cl_R & x) if (coerce(dst, cln::the(x))) { // can be converted to native int if (dst < 0) - c.s << "(-" << dst << ")"; + c.s << '(' << dst << ')'; else c.s << dst; } else { -- 2.46.1