Fabric: Making some picky compilers happy
Summary: Trivial nits. Reviewed By: mdvacca Differential Revision: D12897927 fbshipit-source-id: 61cec4a070218606d52f05740aacbfae1d2efd31
This commit is contained in:
parent
18d8c48c01
commit
786df48b50
|
@ -14,6 +14,7 @@
|
|||
#include <folly/dynamic.h>
|
||||
#include <yoga/YGNode.h>
|
||||
#include <yoga/Yoga.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
@ -51,7 +52,7 @@ inline YGFloatOptional yogaOptionalFloatFromFloat(Float value) {
|
|||
}
|
||||
|
||||
inline YGValue yogaStyleValueFromFloat(const Float &value) {
|
||||
if (isnan(value) || value == kFloatUndefined) {
|
||||
if (std::isnan(value) || value == kFloatUndefined) {
|
||||
return YGValueUndefined;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ struct LayoutContext;
|
|||
*/
|
||||
class LayoutableShadowNode : public virtual Sealable {
|
||||
public:
|
||||
virtual ~LayoutableShadowNode() noexcept = default;
|
||||
|
||||
/*
|
||||
* Measures the node (and node content, propbably recursivly) with
|
||||
* given constrains and relying on possible layout.
|
||||
|
|
Loading…
Reference in New Issue