diff options
author | tege <tege@gmplib.org> | 2003-06-04 12:43:46 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2003-06-04 12:43:46 +0200 |
commit | 920c61ccbbb042c9096f140ae7f0abbb1e62333b (patch) | |
tree | d7effd3026b5dd394e5b595a5db55922ee2148be /mpf/set_str.c | |
parent | 131a3d1637b2f57bda39e147a05e8ebb9dc81214 (diff) | |
download | gmp-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.c | 6 |
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) |