cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 81327b8c61093804d2d8ce5212e5dad8aa75b831
parent 5784264d0eec915ccf5e7a930ee85e36e3a12923
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 12 Feb 2019 15:31:13 -0800

Allow overflow/underflow when parsing floating constants

Diffstat:
Mexpr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/expr.c b/expr.c @@ -208,7 +208,7 @@ primaryexpr(struct scope *s) /* floating constant */ errno = 0; e->constant.f = strtod(tok.lit, &end); - if (errno) + if (errno && errno != ERANGE) error(&tok.loc, "invalid floating constant '%s': %s", tok.lit, strerror(errno)); if (!end[0]) e->type = &typedouble;