[libc-commits] [libc] [libc] Fix sprintf FixedConv test (PR #98204)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jul 9 13:12:36 PDT 2024


================
@@ -3493,8 +3493,8 @@ TEST_F(LlvmLibcSPrintfTest, FixedConv) {
   ASSERT_STREQ_LEN(written, buff, "       0.100 256.000     ");
 
   written =
-      LIBC_NAMESPACE::sprintf(buff, "%+-#12.3lk % 012.3k", 0x000000001013a92a,
-                              0x02740000); // 0.126, 1256.0
+      LIBC_NAMESPACE::sprintf(buff, "%+-#12.3lk % 012.3k", 0x000000001013a92all,
+                              0x02740000ll); // 0.126, 1256.0
----------------
michaelrj-google wrote:

does this one need the `ll`? It looks like this is for the `% 012.3k` which doesn't have a length modifier.

https://github.com/llvm/llvm-project/pull/98204


More information about the libc-commits mailing list