Skip to content

Commit 52d8a79

Browse files
cuvafacebook-github-bot
authored andcommitted
Use logical operator instead of bit operation
Summary: I guess it's the same since we're working on a `bool` but... this causes some compilation error. Changelog: [General][iOS] - Fix compilation warning in yoga Reviewed By: Andrey-Mishanin Differential Revision: D35438992 fbshipit-source-id: 22bb848dfee435ede66af0a740605d4618585e18
1 parent 41cbccd commit 52d8a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/yoga/yoga/Yoga.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ static float YGDistributeFreeSpaceSecondPass(
22292229
depth,
22302230
generationCount);
22312231
node->setLayoutHadOverflow(
2232-
node->getLayout().hadOverflow() |
2232+
node->getLayout().hadOverflow() ||
22332233
currentRelativeChild->getLayout().hadOverflow());
22342234
}
22352235
return deltaFreeSpace;

0 commit comments

Comments
 (0)