aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2022-01-25 11:18:03 +0100
committerMarcoFalke <falke.marco@gmail.com>2022-01-25 10:49:46 +0100
commitfa832103aaa61e93b78ece9dd68c245a41afa6b6 (patch)
treece0de6cc31349225c3fb00c02b6d40028aae68fd /src/chain.h
parentbd482b3ffebc68130f8a18dabf08ed1aff7ea159 (diff)
Avoid integer sanitizer warnings in chain.o
Diffstat (limited to 'src/chain.h')
-rw-r--r--src/chain.h2
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. */