This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this a bug?


>>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:

Martin> Another funny thing:
Martin> public class hello
Martin> {
Martin>     final static long a = 1000000000;
Martin>     final static long c = 1000L * a;
Martin>         System.out.println("c = " + c);

Martin> prints:
Martin> c = 0xe8d4a51000

Martin> The hex output is strange...

I think this was fixed by this patch:

2002-04-27  Tom Tromey  <tromey@redhat.com>

	For PR java/6382:
	* parse.y (string_convert_int_cst): New function.
	(merge_string_cste): Use it.

I don't see the hex output with my build.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]