Skip to content

Commit

Permalink
Fix "no matching function" error on yocto kirkstone (#331)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
grahas authored Dec 12, 2024
1 parent 45bd1dd commit 5e00eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2_foxglove_bridge/src/ros2_foxglove_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(1), qos.depth());
depth = depth + publisherHistoryDepth;
}

Expand Down

0 comments on commit 5e00eae

Please sign in to comment.