summaryrefslogtreecommitdiff
path: root/strtofr.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-09 11:13:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-09 11:13:48 +0000
commit7411ac8b5aff0a09d42a090b487ccb38b274086e (patch)
tree15908d406c96c0116f5967b3df1ba7465a83fa60 /strtofr.c
parente4c037b8182e57b6e54b0bdaf6d8cd03f0bc63b8 (diff)
downloadmpfr-7411ac8b5aff0a09d42a090b487ccb38b274086e.tar.gz
strtofr.c fix: no longer use isdigit, as MPFR requires non-localized
digits. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4198 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'strtofr.c')
-rw-r--r--strtofr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strtofr.c b/strtofr.c
index e2f2e815d..d16350a77 100644
--- a/strtofr.c
+++ b/strtofr.c
@@ -21,7 +21,7 @@ MA 02110-1301, USA. */
#include <string.h> /* For strlen */
#include <stdlib.h> /* For strtol */
-#include <ctype.h> /* For isdigit and isspace */
+#include <ctype.h> /* For isspace */
#include <locale.h> /* For MPFR_DECIMAL_POINT */
#define MPFR_NEED_LONGLONG_H
@@ -175,7 +175,7 @@ digit_value_in_base (int c, int base)
MPFR_ASSERTD (base > 0 && base <= MPFR_MAX_BASE);
- if (isdigit (c))
+ if (c >= '0' && c <= '9')
digit = c - '0';
else if (c >= 'a' && c <= 'z')
digit = (base >= 37) ? c - 'a' + 36 : c - 'a' + 10;