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

UB on comparison #755

Closed
lordnn opened this issue Sep 22, 2022 · 3 comments · Fixed by #822
Closed

UB on comparison #755

lordnn opened this issue Sep 22, 2022 · 3 comments · Fixed by #822

Comments

@lordnn
Copy link
Contributor

lordnn commented Sep 22, 2022

Comparison by relation < is undefined for boolean data type:

const bool firstIsInverted = HasFlag( first.PropertiesMask, PM_Inverted );
const bool secondIsInverted = HasFlag( second.PropertiesMask, PM_Inverted );
if( firstIsInverted != secondIsInverted ) {
return ( firstIsInverted < secondIsInverted );

@ZigRazor
Copy link
Contributor

Can i Solve this?

@FedyuninV
Copy link
Contributor

Can i Solve this?

Be my guest)

@ZigRazor
Copy link
Contributor

do you have to assign to me?

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