Add (unsigned char) cast to ctype function, reworked to fit on one line

This commit is contained in:
dsl 2004-10-29 19:32:22 +00:00
parent 2722aff86f
commit 404e35b651
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
#include "vchar.h"
#define ATOX(c) \
(isdigit(c) ? (c - '0') : (isupper(c) ? (c - 'A' + 10) : (c - 'a' + 10)))
(isdigit((unsigned char)c) ? c - '0' : toupper((unsigned char)c) - 'A' + 10)
u_int32_t p_spi;
u_int p_ext, p_alg_enc, p_alg_auth, p_replay, p_mode;