summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'function.c')
-rw-r--r--function.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/function.c b/function.c
index 0e619fd..0acfd7e 100644
--- a/function.c
+++ b/function.c
@@ -702,13 +702,10 @@ is_numeric (p)
char *end = p + strlen (p) - 1;
char *beg = p;
strip_whitespace (&p, &end);
- while (p <= end)
- {
- if (!isdigit (*p))
- return 0;
- p++;
- }
+ while (p <= end)
+ if (!ISDIGIT (*(p++))) /* ISDIGIT only evals its arg once: see make.h. */
+ return 0;
return (end - beg >= 0);
}