From 81754d8cb2d4806615511990d3db5a478aae0fe9 Mon Sep 17 00:00:00 2001 From: hetan thakkar Date: Wed, 20 Sep 2023 08:34:18 -0700 Subject: [PATCH] Fixed minor syntax error (#1363) Summary: I've corrected the operator syntax error. This error disrupts the execution of command: 'npx react-native run-ios.' Screenshot 2023-09-08 at 8 04 49 PM bypass-github-export-checks Pull Request resolved: https://github.com/facebook/yoga/pull/1363 Reviewed By: yungsters Differential Revision: D49118992 Pulled By: NickGerleman fbshipit-source-id: 55c3ec7890a9682887d2d88e66400eb7f6613792 --- yoga/algorithm/CalculateLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp index d0f2eb81..6a42c7c2 100644 --- a/yoga/algorithm/CalculateLayout.cpp +++ b/yoga/algorithm/CalculateLayout.cpp @@ -1804,7 +1804,7 @@ static void calculateLayoutImpl( } node->setLayoutHadOverflow( - node->getLayout().hadOverflow() | + node->getLayout().hadOverflow() || (flexLine.layout.remainingFreeSpace < 0)); // STEP 6: MAIN-AXIS JUSTIFICATION & CROSS-AXIS SIZE DETERMINATION