chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrect uses of ctype.h (passing it uncast chars, or other
[sgt-puzzles.git]
/
singles.c
diff --git
a/singles.c
b/singles.c
index d8016ff21eb63c4737038d715e24857898e1c3c7..c20d0cf89c763f16bbd0fe231b2a80c384558b36 100644
(file)
--- a/
singles.c
+++ b/
singles.c
@@
-324,7
+324,7
@@
static char n2c(int num) {
}
static int c2n(char c) {
- if (isdigit(c))
+ if (isdigit(
(unsigned char)
c))
return (int)(c - '0');
else if (c >= 'a' && c <= 'z')
return (int)(c - 'a' + 10);