Fix failing checks

This commit is contained in:
Igor Pissolati
2025-04-20 16:26:08 -03:00
parent 763b8fc760
commit 140d1dd5b3
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ const hive_value* hive_key::get_value(std::ifstream& file, size_t index)
{
this->parse(file);
if (index < 0 || index >= values_by_index_.size())
if (index >= values_by_index_.size())
{
return nullptr;
}

View File

@@ -33,7 +33,7 @@ class hive_key
{
this->parse(file);
if (index < 0 || index >= sub_keys_by_index_.size())
if (index >= sub_keys_by_index_.size())
{
return nullptr;
}