From 96a4a0bb3bcdbd1c329ed179074c15bf45f78912 Mon Sep 17 00:00:00 2001 From: wiechula <11199190+wiechula@users.noreply.github.com> Date: Fri, 14 Mar 2025 10:06:47 +0100 Subject: [PATCH] Fix assert For me compilation fails, since `std::vector` cannot be compared to int. I assume the what was intended is this PR. --- Modules/ITS/include/ITS/ITSTrackTask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/ITS/include/ITS/ITSTrackTask.h b/Modules/ITS/include/ITS/ITSTrackTask.h index 01fe7fbb12..cc89ea0e1f 100644 --- a/Modules/ITS/include/ITS/ITSTrackTask.h +++ b/Modules/ITS/include/ITS/ITSTrackTask.h @@ -226,7 +226,7 @@ class ITSTrackTask : public TaskInterface // implementation of the function to be minimized double operator()(const double* par) { // const double -> double - assert(fHits != 0); + assert(fHits.size() != 0); int nhits = fHits.size(); double sum = 0;