changeset 3569:b0df8166fcac draft

harmonize printf format characters - remove the "%" character from format characters for (s)size_t and ptrdiff_t and harmonize them with the ones for int64 and uint64
author Philip Kaufmann <phil.kaufmann@t-online.de>
date Sun, 30 Sep 2012 11:57:25 +0200
parents 5d002dc16627
children 2b2caafbbf33
files src/util.h
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.h
+++ b/src/util.h
@@ -56,13 +56,13 @@
 
 /* Format characters for (s)size_t and ptrdiff_t */
 #if defined(_MSC_VER) || defined(__MSVCRT__)
-  #define PRIszx    "%Ix"
-  #define PRIszu    "%Iu"
-  #define PRIszd    "%Id"
+  #define PRIszx    "Ix"
+  #define PRIszu    "Iu"
+  #define PRIszd    "Id"
 #else
-  #define PRIszx    "%zx"
-  #define PRIszu    "%zu"
-  #define PRIszd    "%zd"
+  #define PRIszx    "zx"
+  #define PRIszu    "zu"
+  #define PRIszd    "zd"
 #endif
 
 // This is needed because the foreach macro can't get over the comma in pair<t1, t2>