[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: floats ??????
From: |
Tom Tromey |
Subject: |
Re: floats ?????? |
Date: |
14 Sep 2002 17:27:27 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
>>>>> "Giannis" == Giannis Georgalis <address@hidden> writes:
Giannis> float a=-1.0f,b=-2.0f;
Giannis> if(a > b)x
Giannis> System.out.println("correct!!");
Giannis> else
Giannis> System.out.println("FAIL !!!");
Giannis> It outputs "FAIL !!!", but if I substitute the line:
Giannis> "float a=-1.0f,b=-2.0f;" with "double a=-1.0f,b=-2.0f;"
Giannis> it outputs "correct!!".
Giannis> Is this a GNU classpath problem, a jikes problem or a kissme
Giannis> problem ?
Without looking at the generated bytecode it is hard to say.
However I think a reasonable guess would be that this is a kissme
bug. jikes is unlikely to optimize this test away (I think).
And it can't be a Classpath bug since the code doesn't involve a
library call (except the prints, but that is extremely unlikely to be
the problem here).
Tom