diff options
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.h b/src/chain.h index 55bdf4cd56..7d5164a7ff 100644 --- a/src/chain.h +++ b/src/chain.h @@ -462,7 +462,7 @@ public: /** Return the maximal height in the chain. Is equal to chain.Tip() ? chain.Tip()->nHeight : -1. */ int Height() const { - return vChain.size() - 1; + return int(vChain.size()) - 1; } /** Set/initialize a chain with a given tip. */ |