-
Notifications
You must be signed in to change notification settings - Fork 646
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(autoware_mpc_lateral_controller): fix bugprone-misplaced-widening-cast #9224
Conversation
Signed-off-by: kobayu858 <[email protected]>
Other errors also exist, but they are not corrected at this time because of their low severity. |
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
@kobayu858 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9224 +/- ##
==========================================
- Coverage 28.92% 28.92% -0.01%
==========================================
Files 1324 1324
Lines 102572 102584 +12
Branches 39795 39796 +1
==========================================
Hits 29673 29673
- Misses 70027 70037 +10
- Partials 2872 2874 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@veqcc |
Signed-off-by: kobayu858 <[email protected]>
The index is now calculated first to make sure it does not exceed the range before casting. |
@TakaHoribe @takayuki5168 |
Description
This is a fix based on clang-tidy
bugprone-misplaced-widening-cast
error.Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.