summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-06-15 09:46:34 -0600
committerEric Blake <ebb9@byu.net>2009-06-15 21:26:17 -0600
commitdb30dc297c6c4ba4d333120820d935304d804c46 (patch)
tree8bc1348b83d2f93b9a52f7b4ae36ffc3b0616bc9
parente6a31a7b140bc717b5320e1dcb588eea46a6839c (diff)
downloadm4-db30dc297c6c4ba4d333120820d935304d804c46.tar.gz
Avoid compiler warning.
* m4/macro.c (process_macro): Use correct type for isdigit. Signed-off-by: Eric Blake <ebb9@byu.net>
-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--;