From 8f6ba2a7a520ad6bad4fe9b7366e988f590d0ec0 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Tue, 18 Jun 2024 17:05:38 +0200 Subject: [PATCH] ICU-22721 Correct format specifier for type int32_t (-Wformat). --- icu4c/source/test/perf/DateFmtPerf/DateFmtPerf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/test/perf/DateFmtPerf/DateFmtPerf.h b/icu4c/source/test/perf/DateFmtPerf/DateFmtPerf.h index c9c239cd2d6e..b94b368b3cfe 100644 --- a/icu4c/source/test/perf/DateFmtPerf/DateFmtPerf.h +++ b/icu4c/source/test/perf/DateFmtPerf/DateFmtPerf.h @@ -632,7 +632,7 @@ class NumFmtFunction : public UPerfFunction case Formattable::kInt64: { char buf[256]; - sprintf(buf, "%ldL", f.getLong()); + sprintf(buf, "%dL", f.getLong()); return UnicodeString(buf, ""); } case Formattable::kString: