Skip to content
This repository has been archived by the owner. It is now read-only.

Fix compile on android build, which uses strongly typed enums. #119

Merged
merged 1 commit into from Dec 9, 2014

Conversation

@glennw
Copy link
Member

glennw commented Dec 9, 2014

With strongly typed enums that are of different size, neither
static_cast nor reinterpret_cast by themselves are enough, so
static_cast to an int and then to the desired type.

With strongly typed enums that are of different size, neither
static_cast nor reinterpret_cast by themselves are enough, so
static_cast to an int and then to the desired type.
@glennw
Copy link
Member Author

glennw commented Dec 9, 2014

pcwalton added a commit that referenced this pull request Dec 9, 2014
Fix compile on android build, which uses strongly typed enums.
@pcwalton pcwalton merged commit e832358 into master Dec 9, 2014
@glennw glennw deleted the fix-android-build branch Dec 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.