From: Andrew Haley Date: Thu, 18 Feb 1999 14:20:20 +0000 (-0800) Subject: jcf-parse.c (get_constant): Add braces around computation of 'd' when REAL_ARITHMETIC... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fe4772939894fd6edaa61bee56b3a4fc4cbb876;p=gcc.git 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 --- diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index 3dcb25b9c66..ad0b80763d3 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;