diff options
author | Nick Clifton <nickc@cygnus.com> | 1998-11-10 23:42:22 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-11-10 16:42:22 -0700 |
commit | 0d17a080d6f40680d65183015a36682f712a43e1 (patch) | |
tree | 45bf8494dce55d2e2eb31c5aebc50289c76b2948 /gcc/java/jcf-parse.c | |
parent | 5e942c506635af4d8ffc95aeb1bebc46a5584c73 (diff) | |
download | gcc-0d17a080d6f40680d65183015a36682f712a43e1.zip gcc-0d17a080d6f40680d65183015a36682f712a43e1.tar.gz gcc-0d17a080d6f40680d65183015a36682f712a43e1.tar.bz2 |
jcf-parse.c (get_constant): Place braces around code to compute 'd' when REAL_ARITHMETIC is not defined.
Mon Oct 26 12:17:23 1998 Nick Clifton <nickc@cygnus.com>
* jcf-parse.c (get_constant): Place braces around code to compute
'd' when REAL_ARITHMETIC is not defined.
From-SVN: r23600
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r-- | gcc/java/jcf-parse.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index df4881d..dd411b3 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -259,10 +259,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; |