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

Netplay: Fix building on clang 17. #12269

Conversation

AdmiralCurtiss
Copy link
Contributor

Casting an enum outside of its defined range is an error there.

Introduced by #12258.
Should fix https://bugs.dolphin-emu.org/issues/13385.

Casting an enum outside of its defined range is an error there.
@AdmiralCurtiss
Copy link
Contributor Author

(Actually now I'm kinda curious if clang will optimize checks against this away under the assumption that an enum can never be outside of the known range, hm...)

@AdmiralCurtiss
Copy link
Contributor Author

Ah goddammit, we still don't have full C++20 support? And I can't use Common::BitCast here because it's not constexpr. Okay, different approach then...

@AdmiralCurtiss AdmiralCurtiss deleted the clang-enum-out-of-range branch November 3, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant