Update FloatOptional.h
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cmath>
|
#include <yoga/numeric/Comparison.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
namespace facebook::yoga {
|
namespace facebook::yoga {
|
||||||
@@ -30,7 +30,7 @@ struct FloatOptional {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool isUndefined() const {
|
constexpr bool isUndefined() const {
|
||||||
return std::isnan(value_);
|
return yoga::isUndefined(value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user