From cce5115e21db1702e0617afdca36633e7e2c9eae Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 15 Jul 2010 23:24:47 +0300 Subject: Move to gawk 2.11.1 as found on Walnut Creek CD-ROM. --- node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node.c') diff --git a/node.c b/node.c index 3d006fe6..971b8231 100644 --- a/node.c +++ b/node.c @@ -60,7 +60,8 @@ NODE *n; } else { errno = 0; n->numbr = (AWKNUM) strtod(n->stptr, &ptr); - if (errno == 0 && ptr == n->stptr + n->stlen) + /* the following >= should be ==, but for SunOS 3.5 strtod() */ + if (errno == 0 && ptr >= n->stptr + n->stlen) n->flags |= NUMERIC; } n->flags |= NUM; -- cgit v1.2.3