summaryrefslogtreecommitdiff
path: root/src/bitmap
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2015-02-25 21:45:50 +0100
committerAdam Jackson <ajax@redhat.com>2015-10-20 12:52:08 -0400
commitd66f107d6e714a54515f39d94caf46aef9be7416 (patch)
treeed0b265d971ce9c72c1471e5a227a3bb3c112207 /src/bitmap
parent1a73d6828dfa03924f2d68644fb5b99afd9c78e2 (diff)
downloadxorg-lib-libXfont-d66f107d6e714a54515f39d94caf46aef9be7416.tar.gz
Fix is*() usage.
The argument must be an unsigned char or -1; in these cases we know it's not -1 so cast it to unsigned char. Fixes warning: array subscript is of type 'char' [-Wchar-subscripts] Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Diffstat (limited to 'src/bitmap')
-rw-r--r--src/bitmap/bdfutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitmap/bdfutils.c b/src/bitmap/bdfutils.c
index 288148b..438d197 100644
--- a/src/bitmap/bdfutils.c
+++ b/src/bitmap/bdfutils.c
@@ -207,11 +207,11 @@ bdfIsInteger(char *str)
char c;
c = *str++;
- if (!(isdigit(c) || c == '-' || c == '+'))
+ if (!(isdigit((unsigned char)c) || c == '-' || c == '+'))
return (FALSE);
while ((c = *str++))
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return (FALSE);
return (TRUE);