From 5e00eaeed962a2d63f229c5bb15861d079a2d070 Mon Sep 17 00:00:00 2001 From: Graham Harison Date: Wed, 11 Dec 2024 17:10:11 -0700 Subject: [PATCH] Fix "no matching function" error on yocto kirkstone (#331) ### Changelog None ### Docs None ### Description #330 Fixes for Yocto issue Fix for compilation error on yocto Kirkstone. > error: no matching function for call to 'max(long unsigned int, size_t) --- ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }