aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-09-30 11:57:25 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-09-30 11:57:25 +0200
commit9c8dc7caf1781b5fdc3c395577c59b50ecacfdad (patch)
treebace8940d1e221da8347c61e4e5298121c9a955f /src
parent018ec85ff7ab422846f1d8b0bfb27a8d6c70eada (diff)
downloadbitcoin-9c8dc7caf1781b5fdc3c395577c59b50ecacfdad.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util.h b/src/util.h
index 745c3d786a..efb76e49b8 100644
--- a/src/util.h
+++ b/src/util.h
@@ -56,13 +56,13 @@ static const int64 CENT = 1000000;
/* 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>