aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@viagra.cygnus.co.uk>1999-02-18 06:20:20 -0800
committerPer Bothner <bothner@gcc.gnu.org>1999-02-18 06:20:20 -0800
commit2fe4772939894fd6edaa61bee56b3a4fc4cbb876 (patch)
treec4d45952f68cef4dfca231af80b8ba9e0c4da110 /gcc/java/jcf-parse.c
parent43a538f6d9f85117ab053cb765ab40180f720e20 (diff)
downloadgcc-2fe4772939894fd6edaa61bee56b3a4fc4cbb876.zip
gcc-2fe4772939894fd6edaa61bee56b3a4fc4cbb876.tar.gz
gcc-2fe4772939894fd6edaa61bee56b3a4fc4cbb876.tar.bz2
jcf-parse.c (get_constant): Add braces around computation of 'd' when REAL_ARITHMETIC is not defined.
� * jcf-parse.c (get_constant): Add braces around computation of 'd' when REAL_ARITHMETIC is not defined. [Oct 26 fix got overwritten -PB] From-SVN: r25284
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 3dcb25b..ad0b807 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -281,10 +281,12 @@ get_constant (jcf, index)
#ifdef REAL_ARITHMETIC
d = REAL_VALUE_FROM_TARGET_DOUBLE (num);
#else
- union { double d; jint i[2]; } u;
- u.i[0] = (jint) num[0];
- u.i[1] = (jint) num[1];
- d = u.d;
+ {
+ union { double d; jint i[2]; } u;
+ u.i[0] = (jint) num[0];
+ u.i[1] = (jint) num[1];
+ d = u.d;
+ }
#endif
value = build_real (double_type_node, d);
break;