mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Avoid integer sanitizer warnings in chain.o
This commit is contained in:
parent
bd482b3ffe
commit
fa832103aa
3 changed files with 2 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue