repl-vsnprintf.c [Was: mpz_limbs interface]

bodrato at bodrato at
Thu Jan 23 17:48:25 UTC 2014


Il Gio, 23 Gennaio 2014 8:39 am, Torbjorn Granlund ha scritto:
> bodrato at writes:
>   Well, it is wrapped with
>   #if ! HAVE_VSNPRINTF   /* only need this file if we don't have vsnprintf

>   so, on many systems it is not compiled at all... (and that's a reason

By forcing #undef HAVE_VSNPRINTF on config.h, make check fails on my PC.
The failing test is tests/misc/t-printf.c, the failing line is:

  check_one ("456 789 blah", "%zd %Zd blah", (size_t) 456, z);

I healed this with a small patch, adding the case 'z' in the switch
(fchar), that feeds the already existing case 'z' in the switch (type).

But this test is probably disabled on systems that use repl-vsnprintf.c
(if we have some in the range of the nightly build machines...).


More information about the gmp-devel mailing list