From 87f010ec1ab3fdff909370efd9dbca635105471a Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 31 Oct 2005 18:22:40 +0000 Subject: Use idigit() instead of range-checking '0' - '9'. --- Src/Modules/mathfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Modules/mathfunc.c') diff --git a/Src/Modules/mathfunc.c b/Src/Modules/mathfunc.c index 6b6488abb..7b9b10fab 100644 --- a/Src/Modules/mathfunc.c +++ b/Src/Modules/mathfunc.c @@ -503,7 +503,7 @@ math_string(UNUSED(char *name), char *arg, int id) unsigned short *seedptr = seedbufptr + i; *seedptr = 0; for (j = 0; j < 4; j++) { - if (*seedstr >= '0' && *seedstr <= '9') + if (idigit(*seedstr)) *seedptr += *seedstr - '0'; else if (tolower(*seedstr) >= 'a' && tolower(*seedstr) <= 'f') -- cgit 1.4.1