[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: floats ??????
From: |
Daryl Lee |
Subject: |
Re: floats ?????? |
Date: |
Sat, 14 Sep 2002 20:06:50 -0400 |
User-agent: |
Mutt/1.2.5i |
I just ran this with gcj/orp/classpath, and did not reproduce the problem.
That is, it ran as one would expect, with both double and float.
On Sat, Sep 14, 2002 at 05:27:27PM -0600, Tom Tromey wrote:
> >>>>> "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
>
>
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpath
>
>
--
Daryl Lee
Marietta, GA