aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/postscript
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-10-31 16:42:32 +0000
committerrsc <devnull@localhost>2005-10-31 16:42:32 +0000
commit74374cc8a40c450423785015c2e30d5a2ed2920c (patch)
tree1d8a5ca97056a320115a342fd251aa0cf0cda751 /src/cmd/postscript
parentb330c942b468ab82fd8853590145187e859258cb (diff)
downloadplan9port-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.c5
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);