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
'size_t' to 'int' conversion in 64Bit builds #5868
Comments
@bakercp this was originally int but it seems you changed it to size_t in 235fede#diff-2520147a1908de2c6127ab61b8b41e97L319. Can you take a look? |
@psychofisch Because operator indices are typically defined as a Without seeing your code, my guess is that you are passing |
You can try to build any of the example projects with 64Bit. |
OF v0.9.8? Do you get the issues with the master branch? That's were all of the fixes were made -- I expect there are still tons of warnings / issues in 0.9.8. |
I'm currently not able to build the master branch, because |
@psychofisch that should be fixed now |
While I tried to clean up some code in one of my projects I found a lot of warnings in 'ofMatrix4x4.h'.
These warnings come up, because a lot of methods in that class use 'std::size_t' as parameter for 'row' and 'col'. This is no warning in 32Bit builds, because they are both (at least) 32Bit long but it generates a warning in 64Bit, where 'size_t' has to be (at least) 64Bit long.
Why are these parameters 'size_t' when, most of the time, they only specify values from 0 to 4?
The text was updated successfully, but these errors were encountered: