[squeak-dev] FFI+Linux+double return value

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Apr 6 18:55:10 UTC 2010


That reminds me something like http://bugs.squeak.org/view.php?id=3929
This did happen on linux only.

Are you on linux ?
Which VM ?
Can you check VM sources ?

Nicolas

2010/4/6 Schwab,Wilhelm K <bschwab at anest.ufl.edu>:
> Hello all,
>
> I had some strange results with double return values and boiled it down to a C function
>
> Double AnyDouble()
> {
>        return 1.0;
> }
>
> called via
>
>  anyDouble
>  < cdecl: double 'AnyDouble' () >
>
> and driven by
>
> | out |
> out := Array writeStream.
> 100 timesRepeat:[
>  out nextPut:Library default anyDouble
> ].
> out contents.
>
> The results are not good.  It works for the first three elements, after which it produces NaN.  The real problem appears to be comparison of floats being broken after that point, as evidenced by a walkback that arises when trying to inspect the resulting collection - exploring it works.
>
> I need to try this on the latest image/vm, but wanted to start gathering opinions.  Any ideas?
>
> Bill
>
>
>
>



More information about the Squeak-dev mailing list