projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7d64c
)
compiler: Add explicit sign to exported complex constants without imaginary component.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 7 Jan 2015 00:15:46 +0000
(
00:15
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 7 Jan 2015 00:15:46 +0000
(
00:15
+0000)
Fixes issue 31.
From-SVN: r219273
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index ccb472bed30d89cb7324472b7c523ac09dba6408..d386b81ce17c7eb428eb3fcd698194986ff80d1a 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-2450,7
+2450,7
@@
Complex_expression::export_complex(String_dump* exp, const mpc_t val)
if (!mpfr_zero_p(mpc_realref(val)))
{
Float_expression::export_float(exp, mpc_realref(val));
- if (mpfr_sgn(mpc_imagref(val)) > 0)
+ if (mpfr_sgn(mpc_imagref(val)) >
=
0)
exp->write_c_string("+");
}
Float_expression::export_float(exp, mpc_imagref(val));