Skip to content

Commit ce49bfc

Browse files
authored
fix(autoware_bytetrack): fix clang-diagnostic-implicit-const-int-float-conversion (#9468)
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 3cbca65 commit ce49bfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

perception/autoware_bytetrack/lib/include/byte_tracker.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#include "strack.h"
4242

43+
#include <limits>
4344
#include <vector>
4445

4546
struct ByteTrackObject
@@ -83,8 +84,8 @@ class ByteTracker
8384

8485
double lapjv(
8586
const std::vector<std::vector<float>> & cost, std::vector<int> & rowsol,
86-
std::vector<int> & colsol, bool extend_cost = false, float cost_limit = LONG_MAX,
87-
bool return_cost = true);
87+
std::vector<int> & colsol, bool extend_cost = false,
88+
float cost_limit = std::numeric_limits<float>::max(), bool return_cost = true);
8889

8990
private:
9091
float track_thresh;

0 commit comments

Comments
 (0)