Commit 2fe47729 by Andrew Haley Committed by Per Bothner

jcf-parse.c (get_constant): Add braces around computation of 'd' when…

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
parent 43a538f6
...@@ -281,10 +281,12 @@ get_constant (jcf, index) ...@@ -281,10 +281,12 @@ get_constant (jcf, index)
#ifdef REAL_ARITHMETIC #ifdef REAL_ARITHMETIC
d = REAL_VALUE_FROM_TARGET_DOUBLE (num); d = REAL_VALUE_FROM_TARGET_DOUBLE (num);
#else #else
union { double d; jint i[2]; } u; {
u.i[0] = (jint) num[0]; union { double d; jint i[2]; } u;
u.i[1] = (jint) num[1]; u.i[0] = (jint) num[0];
d = u.d; u.i[1] = (jint) num[1];
d = u.d;
}
#endif #endif
value = build_real (double_type_node, d); value = build_real (double_type_node, d);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment