diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2013-01-23 22:07:47 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2013-01-23 22:07:47 +0100 |
commit | 62d0eeab745385171c539dfffc7a34339e89964d (patch) | |
tree | 929c2682bd6fa6f985aec9231dfe119bcfe9c2fd | |
parent | 4ca705c5c3e813c7a2d95c5cb432ef9f9fce8974 (diff) | |
download | gmp-62d0eeab745385171c539dfffc7a34339e89964d.tar.gz |
mini-gmp/mini-gmp.c (mpz_set_str): Behaviour more adherent to the real GMP.
-rw-r--r-- | mini-gmp/mini-gmp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mini-gmp/mini-gmp.c b/mini-gmp/mini-gmp.c index 5fefd7e43..6d49bad07 100644 --- a/mini-gmp/mini-gmp.c +++ b/mini-gmp/mini-gmp.c @@ -3883,10 +3883,7 @@ mpz_set_str (mpz_t r, const char *sp, int base) if (*sp == '-') { sign = 1; - - do - sp++; - while (isspace( (unsigned char) *sp)); + sp++; } else sign = 0; |