summaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-08-21 07:36:23 +1000
committerPauli <paul.dale@oracle.com>2017-08-22 07:35:08 +1000
commit00dfbaad88a69ed8294d6039bf5f7d722f72bf39 (patch)
tree55eed0684ae00018ea84a389530563fea46d4b7e /test/evp_test.c
parent0d68367a1279a369146661f4857816b2044116b4 (diff)
Fix ctype arguments.
Cast arguments to the various ctype functions to unsigned char to match their documentation. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4203)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r--test/evp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index 3875081c39..9de7fcca6e 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -1302,7 +1302,7 @@ static int parse_uint64(const char *value, uint64_t *pr)
return -1;
}
*pr *= 10;
- if (!TEST_true(isdigit(*p))) {
+ if (!TEST_true(isdigit((unsigned char)*p))) {
TEST_error("Invalid character in string %s", value);
return -1;
}