From 09b4ff3c77304c092623ff1e86ab15a408b8ef84 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 5 Sep 2023 07:12:42 -0700 Subject: [PATCH] Update yoga/node/LayoutResults.h --- yoga/node/LayoutResults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/node/LayoutResults.h b/yoga/node/LayoutResults.h index 7d25e33c09..a4c2189fe5 100644 --- a/yoga/node/LayoutResults.h +++ b/yoga/node/LayoutResults.h @@ -57,7 +57,7 @@ struct LayoutResults { } void setDirection(YGDirection direction) { - flags_.direction = static_cast(direction); + flags_.direction = static_cast(direction) & 0x03; } bool hadOverflow() const { return flags_.hadOverflow; }