Skip to content

Conversation

InvincibleRMC
Copy link
Contributor

Description

Use static_cast<unsigned char> to generate default and zero for filling of the correct type. In theory you could generate the exact char however, there is no simple python function for generating the conversion.

Fixes #309

Is this user-facing behavior change?

Did you use Generative AI?

Additional Information

Signed-off-by: Michael Carlstrom <[email protected]>
@InvincibleRMC
Copy link
Contributor Author

While continuing on #881 ran into a problem this happen to fix, while not needed it simplifies the fill logic.

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with green CI.

@ahcorde
Copy link
Contributor

ahcorde commented Aug 18, 2025

Pulls: #884
Gist: https://gist.githubusercontent.com/ahcorde/867c63b8bedc54ec2882cde038ecd2d9/raw/5a8fef418af7a348aad6e547ea60750749717d12/ros2.repos
BUILD args: --packages-above-and-dependencies rosidl_generator_cpp
TEST args: --packages-above rosidl_generator_cpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16731

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@InvincibleRMC
Copy link
Contributor Author

Can aarch and Windows be re-run? Linux and rhel I believe are normal failures.

@christophebedard
Copy link
Member

Can aarch and Windows be re-run? Linux and rhel I believe are normal failures.

done!

@ahcorde ahcorde merged commit 30877f5 into ros2:rolling Aug 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSVC warnings when using std::fill in generated messages with types smaller than int
4 participants