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

Use unsigned for enums to avoid bitfield compiler warning #870

Closed
wants to merge 1 commit into from

Conversation

Adlai-Holler
Copy link
Contributor

@Adlai-Holler Adlai-Holler commented Mar 11, 2019

Fixes #845 without adding more bits.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidaurelio is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@davidaurelio
Copy link
Contributor

This causes a bunch of internal failures at FB. Gonna have to work through them one by one

@wokalski
Copy link

wokalski commented Jul 1, 2019

@davidaurelio thank you for all of your hard work! I've seen that the android build was failing in the React Native repo. Is it related?

@davidaurelio
Copy link
Contributor

No, it’s some internal, non-OSS stuff. Unfortunately, we do have lots of different compiler setups, too :-D

@davidaurelio
Copy link
Contributor

This won’t land in this form, sorry. I am getting hard compiler errors. Will replace this with a portable bitfield implementation.

@davidaurelio
Copy link
Contributor

@Adlai-Holler @wokalski I have landed changing to enum storage today, e.g. https://github.com/facebook/yoga/blob/master/yoga/YGStyle.h#L76-L98

This should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The sign problem caused by the C bit field
4 participants