summaryrefslogtreecommitdiff
path: root/mpf/set_str.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2003-06-04 12:43:46 +0200
committertege <tege@gmplib.org>2003-06-04 12:43:46 +0200
commit920c61ccbbb042c9096f140ae7f0abbb1e62333b (patch)
treed7effd3026b5dd394e5b595a5db55922ee2148be /mpf/set_str.c
parent131a3d1637b2f57bda39e147a05e8ebb9dc81214 (diff)
downloadgmp-920c61ccbbb042c9096f140ae7f0abbb1e62333b.tar.gz
(mpf_set_str): Work around gcc 2 bug triggered on alpha.
Diffstat (limited to 'mpf/set_str.c')
-rw-r--r--mpf/set_str.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mpf/set_str.c b/mpf/set_str.c
index 7438bd7df..e300d8c8c 100644
--- a/mpf/set_str.c
+++ b/mpf/set_str.c
@@ -142,8 +142,10 @@ mpf_set_str (mpf_ptr x, const char *str, int base)
exp_base = base;
if (base < 0)
- exp_base = 10;
- base = ABS (base);
+ {
+ exp_base = 10;
+ base = -base;
+ }
digit_value = digit_value_tab;
if (base > 36)