diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-04-17 13:27:15 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-04-17 13:27:15 +0000 |
| commit | 0a9b0a7384e664126a3af418f047ef627c7ac279 (patch) | |
| tree | e2955dd11fd1d5c2ef98afc577f93636d03cd234 /singles.c | |
| parent | 945d8f0a3a9bfe2702170a75484271c71931b2eb (diff) | |
| download | puzzles-0a9b0a7384e664126a3af418f047ef627c7ac279.zip puzzles-0a9b0a7384e664126a3af418f047ef627c7ac279.tar.gz puzzles-0a9b0a7384e664126a3af418f047ef627c7ac279.tar.bz2 puzzles-0a9b0a7384e664126a3af418f047ef627c7ac279.tar.xz | |
Fix incorrect uses of ctype.h (passing it uncast chars, or other
things potentially not in the range 0..255).
[originally from svn r8922]
Diffstat (limited to 'singles.c')
| -rw-r--r-- | singles.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |