Skip to content

unsigned cast for listener_serialized_message.cpp #279

@jeising

Description

@jeising

Bug report

Required Info:

  • Operating System:
    • Ubuntu 16.04
  • Installation type:
    • From source (but should not matter)
  • Version or commit hash:
  • DDS implementation:
    • proprietary
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

  • Have binary char data with leading 1 (not 0)
    -> Interpreted as negative number
    -> Print fails

Expected behavior

Print data correctly aligned

Actual behavior

Print failed

Additional information

To fix this issue add a unsigned cast to:

demos/demo_nodes_cpp/src/topics/listener_serialized_message.cpp:55

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions