Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase that number of bit in YGStyle and YGLayout to resolve the sign issue. #846

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion yoga/YGLayout.h
Expand Up @@ -17,7 +17,7 @@ struct YGLayout {
std::array<float, 6> margin = {};
std::array<float, 6> border = {};
std::array<float, 6> padding = {};
YGDirection direction : 2;
YGDirection direction : 3;
bool didUseLegacyFlag : 1;
bool doesLegacyStretchFlagAffectsLayout : 1;
bool hadOverflow : 1;
Expand Down
20 changes: 10 additions & 10 deletions yoga/YGStyle.h
Expand Up @@ -25,16 +25,16 @@ struct YGStyle {
using Dimensions = facebook::yoga::detail::Values<2>;
using Edges = facebook::yoga::detail::Values<YGEdgeCount>;

YGDirection direction : 2;
YGFlexDirection flexDirection : 2;
YGJustify justifyContent : 3;
YGAlign alignContent : 3;
YGAlign alignItems : 3;
YGAlign alignSelf : 3;
YGPositionType positionType : 1;
YGWrap flexWrap : 2;
YGOverflow overflow : 2;
YGDisplay display : 1;
YGDirection direction : 3;
YGFlexDirection flexDirection : 3;
YGJustify justifyContent : 4;
YGAlign alignContent : 4;
YGAlign alignItems : 4;
YGAlign alignSelf : 4;
YGPositionType positionType : 2;
YGWrap flexWrap : 3;
YGOverflow overflow : 3;
YGDisplay display : 2;
YGFloatOptional flex = {};
YGFloatOptional flexGrow = {};
YGFloatOptional flexShrink = {};
Expand Down