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

Unary minus operator applied to unsigned int #14

Open
fmigneault opened this issue Jan 13, 2017 · 0 comments
Open

Unary minus operator applied to unsigned int #14

fmigneault opened this issue Jan 13, 2017 · 0 comments
Labels

Comments

@fmigneault
Copy link
Contributor

Under MSVC, using additional SDL checks raises an unary minus error.

This error is raised as applying -(unsigned int) results into an (unsigned int) instead of an (int).
This is expected behaviour according to MSVC Docs

lbp.hpp problematic line

I would like to confirm why the -v & v operation is done there?

This could simply be resolved by casting to int: -(int)v & v if it doesn't alter the code intended behaviour.

@nourani nourani added the bug label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants