Skip to content

Commit

Permalink
Update yoga/node/LayoutResults.h
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGerleman authored Sep 5, 2023
1 parent eaa3a62 commit 09b4ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yoga/node/LayoutResults.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct LayoutResults {
}

void setDirection(YGDirection direction) {
flags_.direction = static_cast<uint8_t>(direction);
flags_.direction = static_cast<uint8_t>(direction) & 0x03;
}

bool hadOverflow() const { return flags_.hadOverflow; }
Expand Down

0 comments on commit 09b4ff3

Please sign in to comment.