From ce49bfcefa1e245dab3b9d889f7970338fb4ddda Mon Sep 17 00:00:00 2001 From: kobayu858 <129580202+kobayu858@users.noreply.github.com> Date: Sun, 1 Dec 2024 13:53:05 +0900 Subject: [PATCH] fix(autoware_bytetrack): fix clang-diagnostic-implicit-const-int-float-conversion (#9468) Signed-off-by: kobayu858 --- perception/autoware_bytetrack/lib/include/byte_tracker.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perception/autoware_bytetrack/lib/include/byte_tracker.h b/perception/autoware_bytetrack/lib/include/byte_tracker.h index 60328c5acfd62..736ed6d311043 100644 --- a/perception/autoware_bytetrack/lib/include/byte_tracker.h +++ b/perception/autoware_bytetrack/lib/include/byte_tracker.h @@ -40,6 +40,7 @@ #include "strack.h" +#include #include struct ByteTrackObject @@ -83,8 +84,8 @@ class ByteTracker double lapjv( const std::vector> & cost, std::vector & rowsol, - std::vector & colsol, bool extend_cost = false, float cost_limit = LONG_MAX, - bool return_cost = true); + std::vector & colsol, bool extend_cost = false, + float cost_limit = std::numeric_limits::max(), bool return_cost = true); private: float track_thresh;