jcf-parse.c (get_constant): Add braces around computation of 'd' when REAL_ARITHMETIC...
authorAndrew Haley <aph@viagra.cygnus.co.uk>
Thu, 18 Feb 1999 14:20:20 +0000 (06:20 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 18 Feb 1999 14:20:20 +0000 (06:20 -0800)

* 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

gcc/java/jcf-parse.c

index 3dcb25b9c6686c2d4caa8345495d90ecaac117fd..ad0b80763d3fefe43624450447d0f4bcb207918d 100644 (file)
@@ -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;