[CLN-list] Bug in double_approx() for cl_RA on x86_64

Igor Khavkine igor.kh at gmail.com
Thu Aug 27 16:53:58 CEST 2009


Hello. I've run into a bug in the following routine:

  src/float/dfloat/conv/cl_RA_to_double.cc : double_approx()

A test case is attached. It is supposed to print the rational number
2/3 as a string, a float, and a double. On any 32-bit machine I've
tried, it works perfectly. However, on 64-bit machines, I find that
the conversion to double generates a segmentation fault.

My version is cln-1.2.2. However, looking at the revision history of
the relevant file, I don't see what would have fixed this in 1.3.0, so
presumably the bug could still be there.

It'd be great if someone could look into this. Thanks.

Igor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 304 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/cln-list/attachments/20090827/a0fc0372/attachment.cpp>


More information about the CLN-list mailing list