Skip to content

Commit 1d9f4ce

Browse files
committed
Wrong size comparison fix
1 parent 4176aba commit 1d9f4ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Tasks/Strangeness/strangeCascTrack.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ struct StrangeCascTrack {
772772
// apply general cascade cuts
773773
if (doApplyGenCutsXi) {
774774
auto genSels = isValidCasc(collision, cascade, stdCasc, "Xi");
775-
for (int i = 0; i < std::size(genSels); ++i) {
775+
for (size_t i = 0; i < std::size(genSels); ++i) {
776776
if (genSels[i]) {
777777
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/GenFiltersXi"), (i + 0.5));
778778
if (fillTruthXi)
@@ -789,7 +789,7 @@ struct StrangeCascTrack {
789789
}
790790
if (doApplyGenCutsOmega) {
791791
auto genSels = isValidCasc(collision, cascade, stdCasc, "Omega");
792-
for (int i = 0; i < std::size(genSels); ++i) {
792+
for (size_t i = 0; i < std::size(genSels); ++i) {
793793
if (genSels[i]) {
794794
histos.fill(HIST(TypeNames[Type]) + HIST("/Rec/GenFiltersOmega"), (i + 0.5));
795795
if (fillTruthOmega)

0 commit comments

Comments
 (0)