summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-15 15:50:51 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-15 15:50:51 +0000
commit6b062697c73eae2a081f0f9e0276128b963f6e5b (patch)
treea2a503424d29053f195f8f47f81fc8de58921419 /src
parentb3aedd319ee132516e8dbce2fd721096e36423fa (diff)
downloadmpfr-6b062697c73eae2a081f0f9e0276128b963f6e5b.tar.gz
[src/get_str.c] Since the mpfr_get_str_ndigits function is in the
public API, use MPFR_ASSERTN instead of MPFR_ASSERTD on the condition on the argument b in order to get an assertion failure (by default) if this condition is not satisfied. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14030 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r--src/get_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_str.c b/src/get_str.c
index 306d332f7..7c530ec7a 100644
--- a/src/get_str.c
+++ b/src/get_str.c
@@ -2484,7 +2484,7 @@ mpfr_ceil_mul (mpfr_exp_t e, int beta, int i)
size_t
mpfr_get_str_ndigits (int b, mpfr_prec_t p)
{
- MPFR_ASSERTD(2 <= b && b <= 62);
+ MPFR_ASSERTN (2 <= b && b <= 62);
/* deal first with power of two bases, since even for those, mpfr_ceil_mul
might return a value too large by 1 */