Avoid integer sanitizer warnings in chain.o

This commit is contained in:
MarcoFalke committed 2022-01-25 10:49:46 +01:00
1 parent bd482b3ffe
commit fa832103aa
3 files changed
+2 -8

No files matched your search

+1 -1
View File
@@ -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.