diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-11-09 11:39:34 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-11-09 11:39:34 +0000 |
commit | 4273dca1e26da3164c9608021885edd6036ba811 (patch) | |
tree | 8fdc58f6608190aa95bbe7fc2ce69ab65d788141 /strtofr.c | |
parent | 7411ac8b5aff0a09d42a090b487ccb38b274086e (diff) | |
download | mpfr-4273dca1e26da3164c9608021885edd6036ba811.tar.gz |
strtofr.c: removed a useless cast (ISO C99 standard 6.2.5#3) and updated
a comment as isdigit is no longer used.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4199 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'strtofr.c')
-rw-r--r-- | strtofr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -329,9 +329,9 @@ parse_string (mpfr_t x, struct parsed_string *pstr, for (;;) /* Loop until an invalid character is read */ { int c = (unsigned char) *str++; - /* The cast to unsigned char is needed because of digit_value_in_base, - which uses isdigit; decimal_point uses this convention too. */ - if (c == (unsigned char) '.' || c == decimal_point) + /* The cast to unsigned char is needed because of digit_value_in_base; + decimal_point uses this convention too. */ + if (c == '.' || c == decimal_point) { if (MPFR_UNLIKELY(point)) /* Second '.': stop parsing */ break; |