]> Savannah Git Hosting - gnulib.git/commit
xstrtoll-tests: use %lld for long long
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2022 06:31:02 +0000 (22:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jan 2022 06:47:07 +0000 (22:47 -0800)
commit67e02aaea40a04eed6ed7abcfdf12d89e2793f77
tree3410f932c4807601a745cac0147733c54918e920
parent1eae0f7ea3c220d054025f2c9211700665f9f4a0
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.
ChangeLog
tests/test-xstrtoll.c
tests/test-xstrtoull.c