Bug in Float.valueOf(String)
Maxim Kizub
max at immsp.kiev.ua
Mon Jan 25 15:08:57 PST 1999
Archie Cobbs wrote:
>
> Archie Cobbs writes:
> > Ah yes you are right .. in the case of elipsis arguments, the default
> > "old style" promotions do occur. I'll commit your fix.
> >
> > Do you have any other known examples of this bug?
>
> (to answer my own question..)
>
> I'm fixing Array.c, Field.c, and Method.c which have the
> same problem as well.
Another way is to change in kaffe/kaffevm/support.c in
method callMethodV :
case 'F':
call.callsize[i] = 1;
in[i].f = va_arg(args, jfloat);
break;
into
case 'F':
call.callsize[i] = 1;
in[i].f = (jfloat)va_arg(args, jdouble);
break;
Regards
Maxim Kizub
More information about the kaffe
mailing list