[En-Nut-Discussion] error found in Nut/OS(4.10.3) C standard lib:strtol

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Jun 19 11:11:48 CEST 2013


>>>>> "jn" == jn m <mjnbetter at gmail.com> writes:

...

    >> if ((acc < cutoff || acc == cutoff) && c > cutlim) {
    >> 
    jn> when acc < cutoff, c should not be compared with cutlim, 'cause it's
    jn> already overflow now.  I think it should be modified to:

    >> if (acc > cutoff || (acc == cutoff && c > cutlim)) {
    >> 
...

I have looked at your finding, considered it resonable and applied a patch
to trunk.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list