diff options
| author | Russell Yanofsky <[email protected]> | 2018-03-20 13:07:17 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2018-03-20 13:07:17 -0400 |
| commit | 34ca75032012562d226b06ef9e86a2948d3a8d16 (patch) | |
| tree | e53afcde44338b3b5df92c900d34c5068e269992 /src/undo.h | |
| parent | Merge #12728: [tests] rename TestNode to TestP2PConn in tests (diff) | |
| download | discoin-34ca75032012562d226b06ef9e86a2948d3a8d16.tar.xz discoin-34ca75032012562d226b06ef9e86a2948d3a8d16.zip | |
Remove unnecessary NONNEGATIVE_SIGNED
Switch to unsigned encoding, which is backwards compatible and avoids MSVC
error reported https://github.com/bitcoin/bitcoin/issues/12732
Diffstat (limited to 'src/undo.h')
| -rw-r--r-- | src/undo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.h b/src/undo.h index 6fc25b985..9f39299fb 100644 --- a/src/undo.h +++ b/src/undo.h @@ -25,7 +25,7 @@ class TxInUndoSerializer public: template<typename Stream> void Serialize(Stream &s) const { - ::Serialize(s, VARINT(txout->nHeight * 2 + (txout->fCoinBase ? 1 : 0), VarIntMode::NONNEGATIVE_SIGNED)); + ::Serialize(s, VARINT(txout->nHeight * 2 + (txout->fCoinBase ? 1u : 0u))); if (txout->nHeight > 0) { // Required to maintain compatibility with older undo format. ::Serialize(s, (unsigned char)0); |