mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fix: Change variable signedness and correctly handle std::optional (#6657)
This commit is contained in:
@@ -292,7 +292,7 @@ AccountDelete::preclaim(PreclaimContext const& ctx)
|
||||
if (!cdirFirst(ctx.view, ownerDirKeylet.key, sleDirNode, uDirEntry, dirEntry))
|
||||
return tesSUCCESS;
|
||||
|
||||
std::int32_t deletableDirEntryCount{0};
|
||||
std::uint32_t deletableDirEntryCount{0};
|
||||
do
|
||||
{
|
||||
// Make sure any directory node types that we find are the kind
|
||||
|
||||
@@ -1710,7 +1710,7 @@ ValidatorList::for_each_available(
|
||||
if (plCollection.status != PublisherStatus::available)
|
||||
continue;
|
||||
XRPL_ASSERT(
|
||||
plCollection.maxSequence != 0,
|
||||
plCollection.maxSequence.value_or(0) != 0,
|
||||
"xrpl::ValidatorList::for_each_available : nonzero maxSequence");
|
||||
func(
|
||||
plCollection.rawManifest,
|
||||
|
||||
Reference in New Issue
Block a user