summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--m4/macro.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b356c1f..bde4c2b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-15 Eric Blake <ebb9@byu.net>
+
+ Avoid compiler warning.
+ * m4/macro.c (process_macro): Use correct type for isdigit.
+
2009-06-13 Eric Blake <ebb9@byu.net>
Avoid snprintf link failures.
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--;