fix clang-tidy issues

This commit is contained in:
Mayukha Vadari
2026-07-21 15:40:54 -04:00
parent 49f8eeb78f
commit 7eeb6dda3c

View File

@@ -83,18 +83,18 @@ struct FloatState
{
// Set only when the requested mode is valid; sets the rounding mode on
// construction and restores the previous mode on destruction.
std::optional<NumberRoundModeGuard> guard_;
std::optional<NumberRoundModeGuard> guard;
explicit FloatState(int32_t mode)
{
if (auto const rm = Number::checkedRoundingMode(mode))
guard_.emplace(*rm);
guard.emplace(*rm);
}
explicit
operator bool() const
{
return guard_.has_value();
return guard.has_value();
}
};