diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-02-24 09:08:56 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-02-24 09:08:56 +0100 |
| commit | f48742c2bf6002f7c1afaf1d1723659b85d4a3ac (patch) | |
| tree | 70025f3ea0d6ad42058dbcf034180d0c961d305b /src/core.cpp | |
| parent | Merge pull request #3729 (diff) | |
| download | discoin-f48742c2bf6002f7c1afaf1d1723659b85d4a3ac.tar.xz discoin-f48742c2bf6002f7c1afaf1d1723659b85d4a3ac.zip | |
Get rid of C99 PRI?64 usage in source files
Amend to d5f1e72. It turns out that BerkelyDB was including inttypes.h
indirectly, so we cannot fix this with just macros.
Trivial commit: apply the following script to all .cpp and .h files:
# Middle
sed -i 's/"PRIx64"/x/g' "$1"
sed -i 's/"PRIu64"/u/g' "$1"
sed -i 's/"PRId64"/d/g' "$1"
# Initial
sed -i 's/PRIx64"/"x/g' "$1"
sed -i 's/PRIu64"/"u/g' "$1"
sed -i 's/PRId64"/"d/g' "$1"
# Trailing
sed -i 's/"PRIx64/x"/g' "$1"
sed -i 's/"PRIu64/u"/g' "$1"
sed -i 's/"PRId64/d"/g' "$1"
After this commit, `git grep` for PRI.64 should turn up nothing except
the defines in util.h.
Diffstat (limited to 'src/core.cpp')
| -rw-r--r-- | src/core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.cpp b/src/core.cpp index f5c460761..cbdd24e80 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -64,7 +64,7 @@ uint256 CTxOut::GetHash() const std::string CTxOut::ToString() const { - return strprintf("CTxOut(nValue=%"PRId64".%08"PRId64", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30)); + return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30)); } void CTxOut::print() const |