repl-vsnprintf.c [Was: mpz_limbs interface]

bodrato at mail.dm.unipi.it bodrato at mail.dm.unipi.it
Thu Jan 23 17:48:25 UTC 2014


Ciao,

Il Gio, 23 Gennaio 2014 8:39 am, Torbjorn Granlund ha scritto:
> bodrato at mail.dm.unipi.it 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...).

-- 
http://bodrato.it/






More information about the gmp-devel mailing list