-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
should use size_t instead of int? #36
Comments
As pointed out in #36 there are a lot of other places where implicit casting to 32bit integer values is happening... Unfortunately, the g2o API has a lot of int in function declarations. I'm not sure if explicit casting is the way to go. Maybe we should clean up the API interface instead...
I'm not sure if this helps, but in my mind, explicit casting is a hack and not a real solution, except in very specific situations. |
Any update on this? |
Not so far. I guess, it's also kind of low priority or do I miss any other On Tue, Oct 28, 2014 at 2:16 AM, Samuel Williams [email protected]
|
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
https://github.com/RainerKuemmerle/g2o/blob/master/g2o/core/sparse_block_matrix.hpp#L216-L221
Proposed fix:
assigning size_t to int truncates the value.
The text was updated successfully, but these errors were encountered: