ctype sign fixes (Tom Miller)

This commit is contained in:
rsc 2005-10-31 16:47:30 +00:00
parent 96029e052b
commit a47fbb1641
6 changed files with 7 additions and 6 deletions

View file

@ -258,7 +258,7 @@ numb(float *np, int *argcp, char ***argvp){
return(0);
while((c=(*argvp)[1][0]) == '+')
(*argvp)[1]++;
if(!(isdigit(c) || c=='-'&&(*argvp)[1][1]<'A' || c=='.'))
if(!(isdigit((uchar)c) || c=='-'&&(*argvp)[1][1]<'A' || c=='.'))
return(0);
*np = atof((*argvp)[1]);
(*argcp)--;