PlotJuggler / plotjuggler-ros-plugins

Many PlotJuggler plugins for ROS and ROS2.
GNU Affero General Public License v3.0
106 stars 44 forks source link

fix implicit uint8_t -> double narrowing #42

Closed v4hn closed 2 years ago

v4hn commented 2 years ago

YES, the standard committee believes this might be narrowing and clang 12 throws this error:

error: non-constant-expression cannot be narrowed from type 'uint8_t' (aka 'unsigned char') to 'double' in initializer list [-Wc++11-narrowing]

More information here