shithub: npe

Download patch

ref: 528220319a7a051794d73df31d2e8cc9d47287e2
parent: 2565da9396836897b97d335f19f177f993274407
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Aug 16 22:17:15 EDT 2023

npe: PRI* do not have %

--- a/include/npe/inttypes.h
+++ b/include/npe/inttypes.h
@@ -7,11 +7,11 @@
 #define CHAR_BIT 8
 #endif
 
-#define PRId64 "%lld"
-#define PRIu64 "%llud"
+#define PRId64 "lld"
+#define PRIu64 "llud"
 #define PRIi64 PRId64
-#define PRIx64 "%llx"
-#define PRIdPTR "%p"
-#define PRIuPTR "%p"
+#define PRIx64 "llx"
+#define PRIdPTR "p"
+#define PRIuPTR "p"
 
 #endif