X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.c;h=9f6d4d066a4e7068d16bc05659cb47fd680b3f6b;hp=6d3ba0db18923a3eadacdad294cbe1d38ef69884;hb=1313203b72656e8480805c7688c187d274fdceeb;hpb=39dc9e4612339af669e934c47500605f826a2bb4 diff --git a/ccan/tap/tap.c b/ccan/tap/tap.c index 6d3ba0db..9f6d4d06 100644 --- a/ccan/tap/tap.c +++ b/ccan/tap/tap.c @@ -115,7 +115,8 @@ _gen_result(int ok, const char *func, const char *file, unsigned int line, if(local_test_name) { name_is_digits = 1; for(c = local_test_name; *c != '\0'; c++) { - if(!isdigit(*c) && !isspace(*c)) { + if(!isdigit((unsigned char)*c) + && !isspace((unsigned char)*c)) { name_is_digits = 0; break; }