aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 2 insertions, 1 deletions
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;