diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-10-19 02:11:10 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-10-19 02:11:10 +0200 |
commit | 879f8848db467cdfbb4dc4afc60db358c95eb0b6 (patch) | |
tree | 4e64e3329c241f8272e79d3c08a50389d6b4075c /scanf | |
parent | ff02585919de2699b67c84452bb34056ccc8397d (diff) | |
download | gmp-879f8848db467cdfbb4dc4afc60db358c95eb0b6.tar.gz |
* mpz/set_str.c, mpf/set_str.c, mpbsd/xtom.c, scanf/sscanffuns.c: Cast
chars through "unsigned char" to zero extend, required by C99 ctype.h.
Diffstat (limited to 'scanf')
-rw-r--r-- | scanf/sscanffuns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scanf/sscanffuns.c b/scanf/sscanffuns.c index 54af51436..9152c1cc9 100644 --- a/scanf/sscanffuns.c +++ b/scanf/sscanffuns.c @@ -4,7 +4,7 @@ CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEASES. -Copyright 2001 Free Software Foundation, Inc. +Copyright 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -57,7 +57,7 @@ get (const char **sp) const char *s; int c; s = *sp; - c = *s++; + c = (unsigned char) *s++; if (c == '\0') return EOF; *sp = s; @@ -75,7 +75,7 @@ unget (int c, const char **sp) return; } s--; - ASSERT (*s == c); + ASSERT ((unsigned char) *s == c); *sp = s; } |