git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
864d9d6
)
Fix MSC compiler warning.
author
Richard Kreckel
<kreckel@ginac.de>
Sun, 6 Nov 2016 18:41:47 +0000
(19:41 +0100)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/ginac/numeric.cpp
b/ginac/numeric.cpp
index 74e20e8a9c85833803c96ccf0bbd53217bcf455e..948409e334bf6245c2384f915b1f6543f268dbd2 100644
(file)
--- a/
ginac/numeric.cpp
+++ b/
ginac/numeric.cpp
@@
-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));
- if (cln::plusp(x)
> 0
) {
+ if (cln::plusp(x)) {
c.s << "(";
print_integer_csrc(c, numer);
} else {