fix: Change variable signedness and correctly handle std::optional (#6657)

This commit is contained in:
Mayukha Vadari
2026-04-03 11:16:50 -04:00
committed by GitHub
parent 81555d5456
commit 8e05416211
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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,