diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-03-05 22:55:02 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-03-05 22:55:02 +0100 |
commit | e8668a14c75142a7f0c3c8c21bfab52730d35c0d (patch) | |
tree | d642df523d28a06e7464fcc1a7c9cae382750a76 /mpf | |
parent | 86cd4c6ca1fd678cc0961dd7a5de60205e25814b (diff) | |
download | gmp-e8668a14c75142a7f0c3c8c21bfab52730d35c0d.tar.gz |
Use ASSERT_ALWAYS.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/get_str.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mpf/get_str.c b/mpf/get_str.c index 734d48d28..001ef9e12 100644 --- a/mpf/get_str.c +++ b/mpf/get_str.c @@ -38,8 +38,6 @@ MA 02111-1307, USA. */ easily be interrupted when the needed number of digits are generated. */ -#define assert(true) do { if (!(true)) abort (); } while (0) - #define swapptr(xp,yp) \ do { mp_ptr _swapptr_tmp = (xp); (xp) = (yp); (yp) = _swapptr_tmp; } while (0) @@ -197,7 +195,7 @@ mpf_get_str (digit_ptr, exp, base, n_digits, u) usize = rsize; if (cy) up[usize++] = cy; - assert (usize <= ralloc); /* sufficient space? */ + ASSERT_ALWAYS (usize <= ralloc); /* sufficient space? */ } else { @@ -345,7 +343,7 @@ mpf_get_str (digit_ptr, exp, base, n_digits, u) cy = mpn_mul_1 (rp, rp, rsize, big_base); - assert (! (digits_computed_so_far == 0 && cy == 0)); + ASSERT_ALWAYS (! (digits_computed_so_far == 0 && cy == 0)); /* Convert N1 from BIG_BASE to a string of digits in BASE using single precision operations. */ |