[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xstrtod: modify *result only if no errors.
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] xstrtod: modify *result only if no errors. |
Date: |
Thu, 21 Apr 2016 11:40:59 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 14/04/16 06:35, Tino Calancha wrote:
Dear all,
xstrtod always modifies *result; according with
the doc. string it should modify *result only
when the conversion has no errors.
Coincidentally I just wrote code that depends on that behavior,
so that users could take the returned ±HUGE_VAL on ERANGE,
with the positive/negative distinction being important.
http://lists.gnu.org/archive/html/coreutils/2016-04/msg00057.html
Tino are you writing code that depends on the non modification of RESULT?
Perhaps we could just remove that comment since no code has depended
on that for the last 20 years?
cheers,
Pádraig.