Avoid integer sanitizer warnings in chain.o

This commit is contained in:
MarcoFalke
2022-01-25 11:18:03 +01:00
parent bd482b3ffe
commit fa832103aa
3 changed files with 2 additions and 8 deletions

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.