CLDouble serialization bug in 6.10.1

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Jul 12 09:34:06 EDT 2009


Hello Bulat,

Saturday, July 11, 2009, 9:32:43 PM, you wrote:

Error remains in 6.10.3 (mingw) version

i also got stack trace from Trac trying to report this problem :)))

> sorry, i tested it only with 6.6 and 6.10.1. testcase available as
> http://www.haskell.org/bz/ldouble-bug.zip 

> it's as simple as

>> foreign import ccall unsafe ""
>>   client :: Ptr CLDouble -> IO ()
>> 
>> main = with 1.0 client

> and

>> void client(long double *p)
>> {
>>         printf ("%f\n",(double)(*p));
>> }






-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list