Bug in Float.valueOf(String)

Archie Cobbs archie at whistle.com
Mon Jan 25 15:50:22 PST 1999


Maxim Kizub writes:
> 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;

Duh.. of course, that's a much more correct solution.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list