summaryrefslogtreecommitdiff
path: root/strtofr.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-20 12:52:33 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-10-20 12:52:33 +0000
commit640454d97aef936167459cefdcd21ed731bc1420 (patch)
tree3d34badb66d767c338557c174d16c7a5b5cacdf9 /strtofr.c
parent7832cd91a091a65e36be090304697f8685b8c766 (diff)
downloadmpfr-640454d97aef936167459cefdcd21ed731bc1420.tar.gz
Remove some warnings on some "psycho" systems.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3050 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'strtofr.c')
-rw-r--r--strtofr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strtofr.c b/strtofr.c
index 3a8fb7b6e..efcb14f9e 100644
--- a/strtofr.c
+++ b/strtofr.c
@@ -211,7 +211,7 @@ parse_string (mpfr_t x, struct parsed_string *pstr,
pstr->mantissa = NULL;
/* Optional leading whitespace */
- while (isspace(*str)) str++;
+ while (isspace((int) *str)) str++;
/* Can be case-insensitive NAN */
if (strncasecmp (str, "@nan@", 5) == 0)
@@ -345,7 +345,7 @@ parse_string (mpfr_t x, struct parsed_string *pstr,
/* an optional exponent (e or E, p or P, @) */
if ( (*str == '@' || (base <= 10 && (*str == 'e' || *str == 'E')))
- && (!isspace(str[1])) )
+ && (!isspace((int) str[1])) )
{
char *endptr[1];
/* the exponent digits are kept in ASCII */
@@ -361,7 +361,7 @@ parse_string (mpfr_t x, struct parsed_string *pstr,
pstr->exp_base = sum;
}
else if ((base == 2 || base == 16)
- && (*str == 'p' || *str == 'P') && (!isspace(str[1])))
+ && (*str == 'p' || *str == 'P') && (!isspace((int) str[1])))
{
char *endptr[1];
pstr->exp_bin = (mp_exp_t) strtol (str + 1, endptr, 10);