1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00
Files
gnulib/tests/test-xstrtoull.c
Paul Eggert 67e02aaea4 xstrtoll-tests: use %lld for long long
* tests/test-xstrtoll.c, tests/test-xstrtoull.c (__spec):
Do not assume long long is 64 bits, or that exact-width
64-bit types exist.  Although these assumptions are true
on current Gnulib platforms they are not true in general.
Also, GCC warns if PRId64 is "ld" but intmax_t is long long
even when long and long long are both 64 bits.
2022-01-16 22:47:07 -08:00

5 lines
117 B
C

#define __xstrtol xstrtoull
#define __strtol_t unsigned long long int
#define __spec "llu"
#include "test-xstrtol.c"