problem with doubles in FFI
bert at isg.cs.uni-magdeburg.de
Mon May 26 14:36:40 UTC 2003
Am Samstag, 24.05.03 um 18:20 Uhr schrieb erollo:
> We are working with FFI and we have a few problems with doubles:
> 1. In the FFITester, there is a method called testAll. But when I
> launch it, I get "error: problem with doubles".
> 2. We have some functions returning doubles like dRandReal() which
> returns a double between 0 and 1. If I call it several times, I get
> double a few times, then I get a "NaN" double (Not a Number) until I
> quit Squeak and restart it.
> 3. That's why some functions with doubles as arguments make Squeak
> crash with a segmentation fault.
> Does anyone know the source of the problem ?
Did you try both 3.4 and 3.5 VMs? Ian rewrote FFI in 3.5, it does not
use libffi anymore (on x86 and ppc at least IIRC).
More information about the Squeak-dev