diff options
author | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
commit | 74374cc8a40c450423785015c2e30d5a2ed2920c (patch) | |
tree | 1d8a5ca97056a320115a342fd251aa0cf0cda751 /src/cmd/postscript | |
parent | b330c942b468ab82fd8853590145187e859258cb (diff) | |
download | plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.tar.gz plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.tar.bz2 plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.zip |
ctype sign fixes (Tom Miller)
Diffstat (limited to 'src/cmd/postscript')
-rw-r--r-- | src/cmd/postscript/common/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/postscript/common/misc.c b/src/cmd/postscript/common/misc.c index aca58f0e..28120ea5 100644 --- a/src/cmd/postscript/common/misc.c +++ b/src/cmd/postscript/common/misc.c @@ -4,6 +4,7 @@ * */ +#include <u.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -170,10 +171,10 @@ str_convert(str, err) * */ - if ( ! isdigit(**str) ) + if ( ! isdigit((uchar)**str) ) return(err); - for ( i = 0; isdigit(**str); *str += 1 ) + for ( i = 0; isdigit((uchar)**str); *str += 1 ) i = 10 * i + **str - '0'; return(i); |