From ff8fe7d883b8f1dc047cde6994fe05f9286aea0d Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 3 Oct 2023 16:55:05 -0700 Subject: [PATCH] Update Comparison.h --- yoga/numeric/Comparison.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/numeric/Comparison.h b/yoga/numeric/Comparison.h index e0baef2b..4ddb7c9b 100644 --- a/yoga/numeric/Comparison.h +++ b/yoga/numeric/Comparison.h @@ -16,7 +16,7 @@ namespace facebook::yoga { constexpr bool isUndefined(std::floating_point auto value) { - // Can be replaced by constexpr std::isnan in C++ 23 + // is NaN return value != value; }