-
Notifications
You must be signed in to change notification settings - Fork 338
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
Potentially unsafe static_cast of double to int in SetIO service handler #280
Comments
Labelled as |
Seems like a change would be unnecessary. A message sent should use the enumerations for 0, 12, and 24, meaning there should never be any values like 11.99 or 23.99 that would give reason for that change. Please do correct me if I misunderstand. |
I guess the important bit here is "should use the enumerations". Fractional values are not expected, I agree, but perhaps it might make sense to -- instead of simply Prior to ros-industrial/universal_robot#415 there was no set of constants that could be used, so clients could be specifying any value. |
@reidchristopher: would this be something you see opportunity to work on? Otherwise I'm going to remove the |
The value is actually being checked by |
Within the last few seconds, I realized the checking logic is flawed and will always return false. That at the very least needs to be fixed and I would be happy to do so |
Fixed the logic and added the rounding in #327 |
@miguelprada wrote (in ros-industrial/universal_robot#415 (comment)):
The text was updated successfully, but these errors were encountered: