libstdc++: printf format string fix in testsuite
authorMatthias Kretz <m.kretz@gsi.de>
Thu, 2 Feb 2023 11:28:39 +0000 (12:28 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Thu, 16 Feb 2023 14:58:33 +0000 (15:58 +0100)
Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

* testsuite/experimental/simd/tests/bits/verify.h
(verify::verify): Use %zx for size_t in format string.

libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h

index 2ab3ad3..01ad50b 100644 (file)
@@ -137,7 +137,7 @@ public:
     {
       if (m_failed)
        [&] {
-         __builtin_fprintf(stderr, "%s:%d: (%s):\nInstruction Pointer: %x\n"
+         __builtin_fprintf(stderr, "%s:%d: (%s):\nInstruction Pointer: %zx\n"
                                    "Assertion '%s' failed.\n",
                            file, line, func, m_ip, cond);
          (print(extra_info, int()), ...);