more verbose

This commit is contained in:
Sebastien Loriot 2025-10-21 18:08:22 +02:00 committed by GitHub
parent c5b5a54952
commit adfcc7d102
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ struct Lambda<Curve<FilteredTraits,true>>
bool update_exact() const bool update_exact() const
{ {
if (is_exact){ if (is_exact){
if (! exact){ if (!exact.has_value()){
exact = (is_one) ? std::make_optional(Exact(1)) : std::make_optional(Exact(0)); exact = (is_one) ? std::make_optional(Exact(1)) : std::make_optional(Exact(0));
} }
return true; return true;
@ -211,7 +211,7 @@ struct Lambda<Curve<FilteredTraits,true>>
} }
update_exact(); update_exact();
other.update_exact(); other.update_exact();
bool eres = *exact < *other.exact; bool eres = exact.value() < other.exact.value();
return eres; return eres;
} }
}; };