summaryrefslogtreecommitdiff
path: root/m4/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macro.c')
-rw-r--r--m4/macro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/macro.c b/m4/macro.c
index fc28cd35..76ccca76 100644
--- a/m4/macro.c
+++ b/m4/macro.c
@@ -740,7 +740,8 @@ process_macro (m4 *context, m4_symbol_value *value, m4_obstack *obs,
syntax instead of $10; see
http://lists.gnu.org/archive/html/m4-discuss/2006-08/msg00028.html
for more discussion. */
- if (m4_get_posixly_correct_opt (context) || !isdigit(text[1]))
+ if (m4_get_posixly_correct_opt (context)
+ || !isdigit (to_uchar (text[1])))
{
i = *text++ - '0';
len--;