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
Fix broadphase warnings for clang (some conversion remain for g++) #268
Fix broadphase warnings for clang (some conversion remain for g++) #268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have any warning on my side. Could you give me the compiler and its version in use?
clang10 on Ubuntu 20.04:
|
OK. I will accept it, even if I think this is a mistake from your compiler or maybe the Eigen version in use. |
By curiosity, can you check if you have a warning with an int instead of a long. |
@jmirabel Indeed, I didn't see the warning in that case. Note, however that then we'd need to use a cast from long to int above. |
Then I think it depends on the size of long your compiler uses. Although minor to me and questionable, I think it makes more sense to use int (with a static cast). I don't think we will ever reach 2^31 leaves (except may be on very particular setup). |
I do think that the issue is coming from your compiler. I don't have such warnings with clang 13.0 |
It does not depend only on the compiler. If you want to be sure it's the compiler fault, you should check that |
No description provided.