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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
44d8da2520
commit
f174de70af
@@ -2229,7 +2229,7 @@ static float YGDistributeFreeSpaceSecondPass(
|
|||||||
depth,
|
depth,
|
||||||
generationCount);
|
generationCount);
|
||||||
node->setLayoutHadOverflow(
|
node->setLayoutHadOverflow(
|
||||||
node->getLayout().hadOverflow() |
|
node->getLayout().hadOverflow() ||
|
||||||
currentRelativeChild->getLayout().hadOverflow());
|
currentRelativeChild->getLayout().hadOverflow());
|
||||||
}
|
}
|
||||||
return deltaFreeSpace;
|
return deltaFreeSpace;
|
||||||
|
Reference in New Issue
Block a user