summaryrefslogtreecommitdiff
path: root/strtofr.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-09 11:39:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-09 11:39:34 +0000
commit4273dca1e26da3164c9608021885edd6036ba811 (patch)
tree8fdc58f6608190aa95bbe7fc2ce69ab65d788141 /strtofr.c
parent7411ac8b5aff0a09d42a090b487ccb38b274086e (diff)
downloadmpfr-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strtofr.c b/strtofr.c
index d16350a77..0573793a9 100644
--- a/strtofr.c
+++ b/strtofr.c
@@ -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;