From c0449263d96ad113e2c48178e67a6fcf771cf7de Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 3 Oct 2023 16:22:10 -0700 Subject: [PATCH] Fix GCC Build I have no idea how Clang is okay with`unwrapOrDefault()` here. --- yoga/numeric/FloatOptional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/numeric/FloatOptional.h b/yoga/numeric/FloatOptional.h index 62e22f36..99d43e93 100644 --- a/yoga/numeric/FloatOptional.h +++ b/yoga/numeric/FloatOptional.h @@ -29,7 +29,7 @@ struct FloatOptional { return isUndefined() ? defaultValue : value_; } - bool isUndefined() const { + constexpr bool isUndefined() const { return std::isnan(value_); } };