summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-07 09:18:49 -0600
committerKarl Williamson <khw@cpan.org>2019-11-11 21:05:13 -0700
commit2a3c509d463ce8d8356aff457f4a59da34c33673 (patch)
tree6466b963c13d283128be256536b0f1b6162e021d /malloc.c
parent0cd59ee9ca0f0af3c0c172ecc27bb3f02da6db08 (diff)
downloadperl-2a3c509d463ce8d8356aff457f4a59da34c33673.tar.gz
malloc.c: Use isDIGIT macro instead of hand-rolling it
The macro is more efficient
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index ded9868af8..66db775f6f 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1688,7 +1688,7 @@ morecore(int bucket)
IV val = 0;
t += 2;
- while (*t <= '9' && *t >= '0')
+ while (isDIGIT(*t))
val = 10*val + *t++ - '0';
if (!*t || *t == ';') {
if (MallocCfg[off - opts] != val)