public inbox for liba2i@lists.linux.dev
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: Alejandro Colomar <alx@kernel.org>
Cc: bug-gnulib@gnu.org, "Michael Vetter" <jubalh@iodoru.org>,
	"Paul Eggert" <eggert@cs.ucla.edu>,
	"Đoàn Trần Công Danh" <congdanhqx@gmail.com>,
	"Eli Schwartz" <eschwartz93@gmail.com>,
	"Sam James" <sam@gentoo.org>, "Serge Hallyn" <serge@hallyn.com>,
	"Iker Pedrosa" <ipedrosa@redhat.com>,
	liba2i@lists.linux.dev
Subject: Re: [PATCH v1] xstrtol: Remove dead code
Date: Fri, 19 Jul 2024 18:54:40 +0200	[thread overview]
Message-ID: <3987680.qgXdJBQaxk@nimes> (raw)
In-Reply-To: <dpytrfxb2726ygcqu5uveuq72dm4shs3ali6ul3a4bqrilhepu@kfhckv3435zb>

Alejandro Colomar wrote:
> strtod(3) defers to strtol(3) for the example program.

Is this adequate? strtod() can produce underflow (e.g. for "1e-500").
In this case all implementations except MSVC set errno to ERANGE.
This is a case that cannot happen in strtol().

Bruno




  reply	other threads:[~2024-07-19 17:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-18 20:33 [PATCH v1] xstrtol: Remove dead code Alejandro Colomar
2024-07-18 21:09 ` Bruno Haible
2024-07-18 21:25   ` Alejandro Colomar
2024-07-18 21:33     ` Andrew J. Hesford
2024-07-18 22:14     ` Alejandro Colomar
2024-07-18 23:32       ` Alejandro Colomar
2024-07-19 17:13       ` Bruno Haible
2024-07-18 22:34     ` Bruno Haible
2024-07-18 23:21       ` Alejandro Colomar
2024-07-19 16:54         ` Bruno Haible [this message]
2024-07-19 18:15           ` Alejandro Colomar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3987680.qgXdJBQaxk@nimes \
    --to=bruno@clisp.org \
    --cc=alx@kernel.org \
    --cc=bug-gnulib@gnu.org \
    --cc=congdanhqx@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eschwartz93@gmail.com \
    --cc=ipedrosa@redhat.com \
    --cc=jubalh@iodoru.org \
    --cc=liba2i@lists.linux.dev \
    --cc=sam@gentoo.org \
    --cc=serge@hallyn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox