summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-29 06:50:59 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-29 06:50:59 +0000
commit6641ec09b100b9d145ec9581f915af63bccf3c65 (patch)
tree1f55242a28866f766a5ff9405c89e637bfe79322
parentb38d83c41700ca440ba85e23127124afc39cf670 (diff)
downloadmpfr-6641ec09b100b9d145ec9581f915af63bccf3c65.tar.gz
[src/vasprintf.c] In a macro definition, changed a parameter to
lowercase so that it doesn't look like a constant to mpfrlint. (merged changeset r11521 from the trunk, completing r11538) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11541 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/vasprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vasprintf.c b/src/vasprintf.c
index 4238923bf..08855d101 100644
--- a/src/vasprintf.c
+++ b/src/vasprintf.c
@@ -1648,12 +1648,12 @@ partition_number (struct number_parts *np, mpfr_srcptr p,
/* compute the number of characters to be written verifying it is not too
much */
-#define INCR_TOTAL(V) \
+#define INCR_TOTAL(v) \
do { \
- MPFR_ASSERTD ((V) >= 0); \
- if (MPFR_UNLIKELY ((V) > INT_MAX)) \
+ MPFR_ASSERTD ((v) >= 0); \
+ if (MPFR_UNLIKELY ((v) > INT_MAX)) \
goto error; \
- total += (V); \
+ total += (v); \
if (MPFR_UNLIKELY (total > INT_MAX)) \
goto error; \
} while (0)