C++: __java_double expressions promote to float

Jason Merrill jason@redhat.com
Wed Apr 10 06:13:00 GMT 2002


I told you in person this was OK, but reading over the function again, I
see that we don't need to add explicit __java_double support, we just need
to stop assuming that any REAL_TYPE not long double or double must be
float. The 'else' should be an 'if' like the others, as specified in the
standard. The default should be to arbitrarily choose one of the two
types. Or perhaps use type_for_mode.
Also, the function should check for the types actually being the same up
where it tests for different precisions; no need to get fancy in that case.
Jason


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /