Update FloatOptional.h

This commit is contained in:
Nick Gerleman
2023-10-03 16:41:13 -07:00
committed by GitHub
parent c0449263d9
commit bf2bec80da

View File

@@ -7,7 +7,7 @@
#pragma once
#include <cmath>
#include <yoga/numeric/Comparison.h>
#include <limits>
namespace facebook::yoga {
@@ -30,7 +30,7 @@ struct FloatOptional {
}
constexpr bool isUndefined() const {
return std::isnan(value_);
return yoga::isUndefined(value);
}
};