-
Notifications
You must be signed in to change notification settings - Fork 44
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
rclc_parameter: Fix rcl return values #270
Conversation
Good catch |
@mergify backport foxy galactic |
🟠 Waiting for conditions to match
Hey, I reacted but my real name is @Mergifyio |
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #270 +/- ##
==========================================
- Coverage 64.67% 64.58% -0.10%
==========================================
Files 16 16
Lines 2197 2197
Branches 647 647
==========================================
- Hits 1421 1419 -2
- Misses 460 461 +1
- Partials 316 317 +1
Continue to review full report at Codecov.
|
Nice! Also, CI error is not related to the PR. |
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.
Great catch. LGTM.
Failing CI build on ROS 2 build farm due to Ubuntu update to jammy
If not critical, I would wait until that issue is fixed. Otherwise, we could also merge. See related issue: #267 |
I'm ok with waiting |
@bjsowa The build jobs on open robotics build farm are running again. However, a change in the You have to options: B) pull master branch and rebase your PR on master and then push. |
Signed-off-by: Błażej Sowa <[email protected]>
I have rebased this |
CI ok, merging |
Signed-off-by: Błażej Sowa <[email protected]> (cherry picked from commit 56ee3c1)
Signed-off-by: Błażej Sowa <[email protected]> (cherry picked from commit 56ee3c1)
✅ Backports have been created
|
Signed-off-by: Błażej Sowa <[email protected]> (cherry picked from commit 56ee3c1) Co-authored-by: Błażej Sowa <[email protected]>
* rclc_parameter: Fix rcl return values (#270) Signed-off-by: Błażej Sowa <[email protected]> (cherry picked from commit 56ee3c1) * trigger build job on open robotics build farm Signed-off-by: Jan Staschulat (CR/ADA1.2) <[email protected]> * trigger build job on open robotics build farm (2) Signed-off-by: Jan Staschulat (CR/ADA1.2) <[email protected]> Co-authored-by: Błażej Sowa <[email protected]> Co-authored-by: Jan Staschulat (CR/ADA1.2) <[email protected]>
I was looking through the code and noticed a potential problem with the way return values are processed in rclc_parameter functions.
RCL_RET_OK is defined as 0, so doing
bitwise and
operations on it will not change its value.I think the author meant to use
bitwise or
operators instead. That way if one of the function results in an error, the return value will not be equal to RCL_RET_OK.