summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-22 11:38:10 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-22 11:38:10 +0000
commit7cb2e704590a6228d5a4c189c0883473d4c5db4c (patch)
tree352bce2e5d02a69a93f422a6892d9c8bbf28b6e7
parent7450303717c09d5048539e6e49693da46ab56bb0 (diff)
downloadmpfr-7cb2e704590a6228d5a4c189c0883473d4c5db4c.tar.gz
[tests/tsprintf.c] Added explanation for the percent_n() / mixed() bugs.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11518 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tsprintf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c
index ea2b15f5f..2f392b33c 100644
--- a/tests/tsprintf.c
+++ b/tests/tsprintf.c
@@ -1394,7 +1394,10 @@ snprintf_size (void)
mpfr_clear (x);
}
-/* With r11516, n2 gets a random value for i = 0 only!!! */
+/* With r11516, n2 gets a random value for i = 0 only!
+ valgrind detects a problem for "nchar = buf.curr - buf.start;"
+ in the spec.spec == 'n' case. Indeed, there is no buffer when
+ size is 0. */
static void
percent_n (void)
{