Skip to content

Commit 96a4a0b

Browse files
authored
Fix assert
For me compilation fails, since `std::vector<TVector3>` cannot be compared to int. I assume the what was intended is this PR.
1 parent 5db8c28 commit 96a4a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/ITS/include/ITS/ITSTrackTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class ITSTrackTask : public TaskInterface
226226
// implementation of the function to be minimized
227227
double operator()(const double* par)
228228
{ // const double -> double
229-
assert(fHits != 0);
229+
assert(fHits.size() != 0);
230230

231231
int nhits = fHits.size();
232232
double sum = 0;

0 commit comments

Comments
 (0)