* 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 Paul Eggert <eggert@cs.ucla.edu>
+
+ 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-15 Bruno Haible <bruno@clisp.org>
Don't pass unknown warning option to clang.
#define __xstrtol xstrtoll
#define __strtol_t long long int
-#define __spec PRId64
+#define __spec "lld"
#include "test-xstrtol.c"
#define __xstrtol xstrtoull
#define __strtol_t unsigned long long int
-#define __spec PRIu64
+#define __spec "llu"
#include "test-xstrtol.c"