[CLN-list] Parsing bug in cl_N constructor

tluthe at physik.uni-bielefeld.de tluthe at physik.uni-bielefeld.de
Wed Oct 1 19:53:50 CEST 2014


Hi,

I have come across a (very rare) error when calling the cl_N(const char *)
constructor: For a particular argument with ~10000 digits (see attached
file) the constructor seems to insert an extra 0 after the first digit.
The input is
3.40805...
while the finished cl_N reads
30.40805...

The problem seems to be related to the input length, as adding or removing
a digit at the end leads to the correct result.

Best regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cln_bug.cpp
Type: text/x-c++src
Size: 9905 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/cln-list/attachments/20141001/1bad3375/attachment.cpp>


More information about the CLN-list mailing list