use 64 bit counters (#136)

* use 64 bit counters
This commit is contained in:
Nathan Nichols
2022-03-30 13:01:56 -05:00
committed by GitHub
parent e526083456
commit 9b1de77110
2 changed files with 8 additions and 7 deletions

View File

@@ -253,8 +253,9 @@ BackendInterface::fetchLedgerPage(
bool reachedEnd = false;
while (keys.size() < limit && !reachedEnd)
{
ripple::uint256 const& curCursor =
keys.size() ? keys.back() : cursor ? *cursor : firstKey;
ripple::uint256 const& curCursor = keys.size() ? keys.back()
: cursor ? *cursor
: firstKey;
uint32_t seq = outOfOrder ? range->maxSequence : ledgerSequence;
auto succ = fetchSuccessorKey(curCursor, seq, yield);
if (!succ)