Skip to content

Commit c9f8cb0

Browse files
committed
Use unsigned loop index
1 parent 77fe1f3 commit c9f8cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ struct HfCandidateCreatorXicToXiPiPi {
244244

245245
//----------------create cascade track------------------------------------------------------------
246246
constexpr std::array<int, 6> MomInd = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component
247-
for (int i = 0; i < MomInd.size(); i++) {
247+
for (auto i = 0u; i < MomInd.size(); i++) {
248248
covCasc[MomInd[i]] = casc.momentumCovMat()[i];
249249
covCasc[i] = casc.positionCovMat()[i];
250250
}
@@ -498,7 +498,7 @@ struct HfCandidateCreatorXicToXiPiPi {
498498
// read {X,Y,Z,Px,Py,Pz} and corresponding covariance matrix from KF cascade Tables
499499
std::array<float, 6> xyzpxpypz = {casc.x(), casc.y(), casc.z(), casc.px(), casc.py(), casc.pz()};
500500
float parPosMom[6];
501-
for (int i{0}; i < xyzpxpypz.size(); ++i) {
501+
for (auto i = 0u; i < xyzpxpypz.size(); ++i) {
502502
parPosMom[i] = xyzpxpypz[i];
503503
}
504504
// create KFParticle

0 commit comments

Comments
 (0)