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

require integer type for bitCount and bitfieldReverse #893

Closed
Zuzu-Typ opened this issue Apr 8, 2019 · 1 comment
Closed

require integer type for bitCount and bitfieldReverse #893

Zuzu-Typ opened this issue Apr 8, 2019 · 1 comment
Assignees
Milestone

Comments

@Zuzu-Typ
Copy link

Zuzu-Typ commented Apr 8, 2019

bitCount() and bitfieldReverse() require integer inputs, so a check should be performed wether they are or not.

Additionally, bitfieldReverse() throws warning C4309 in Visual C++ if typename T (the argument's underlying type) isn't unsigned long long or u64vec respectively, because unsigned long long constants are cast to T.
Since the casting is intentional, you might want to silence the warning for this part of the code.

@Groovounet
Copy link
Member

This issue is resolved on master branch for GLM 0.9.9.6 release.

Thanks for contributing,
Christophe

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

No branches or pull requests

2 participants