diff --git a/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp b/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp index 1e37963..1e429e8 100644 --- a/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp +++ b/ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp @@ -480,7 +480,7 @@ void FoxgloveBridge::subscribe(foxglove::ChannelId channelId, ConnectionHandle c // broadcasters). See also // https://github.com/foxglove/ros-foxglove-bridge/issues/238 and // https://github.com/foxglove/ros-foxglove-bridge/issues/208 - const size_t publisherHistoryDepth = std::max(1ul, qos.depth()); + const size_t publisherHistoryDepth = std::max(static_cast(1), qos.depth()); depth = depth + publisherHistoryDepth; }