diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-25 11:18:03 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-25 10:49:46 +0100 |
commit | fa832103aaa61e93b78ece9dd68c245a41afa6b6 (patch) | |
tree | ce0de6cc31349225c3fb00c02b6d40028aae68fd /src/chain.cpp | |
parent | bd482b3ffebc68130f8a18dabf08ed1aff7ea159 (diff) |
Avoid integer sanitizer warnings in chain.o
Diffstat (limited to 'src/chain.cpp')
-rw-r--r-- | src/chain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.cpp b/src/chain.cpp index e0c29372dd..b8158f7b0b 100644 --- a/src/chain.cpp +++ b/src/chain.cpp @@ -151,7 +151,7 @@ int64_t GetBlockProofEquivalentTime(const CBlockIndex& to, const CBlockIndex& fr if (r.bits() > 63) { return sign * std::numeric_limits<int64_t>::max(); } - return sign * r.GetLow64(); + return sign * int64_t(r.GetLow64()); } /** Find the last common ancestor two blocks have. |