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
This commit is contained in:
Philip Kaufmann 2012-09-30 11:57:25 +02:00
parent 018ec85ff7
commit 9c8dc7caf1
1 changed files with 6 additions and 6 deletions

View File

@ -56,13 +56,13 @@ static const int64 CENT = 1000000;
/* Format characters for (s)size_t and ptrdiff_t */ /* Format characters for (s)size_t and ptrdiff_t */
#if defined(_MSC_VER) || defined(__MSVCRT__) #if defined(_MSC_VER) || defined(__MSVCRT__)
#define PRIszx "%Ix" #define PRIszx "Ix"
#define PRIszu "%Iu" #define PRIszu "Iu"
#define PRIszd "%Id" #define PRIszd "Id"
#else #else
#define PRIszx "%zx" #define PRIszx "zx"
#define PRIszu "%zu" #define PRIszu "zu"
#define PRIszd "%zd" #define PRIszd "zd"
#endif #endif
// This is needed because the foreach macro can't get over the comma in pair<t1, t2> // This is needed because the foreach macro can't get over the comma in pair<t1, t2>