Skip to content

Commit c628d7c

Browse files
committed
Fix typecast errors
1 parent 9f22658 commit c628d7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Common/TableProducer/multCentTable.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct MultCentTable {
165165
// it is thus safer to always keep the actual process function for centrality
166166
// generation to true, since the requisites for being in this context are
167167
// always fulfilled
168-
if (collisions.size() != mults.size()) {
168+
if (collisions.size() != static_cast<size_t>(mults.size())) {
169169
LOGF(fatal, "Size of collisions doesn't match size of multiplicity buffer!");
170170
}
171171
module.generateCentralitiesRun2(ccdb, metadataInfo, bcs, mults, products);
@@ -180,7 +180,7 @@ struct MultCentTable {
180180
// it is thus safer to always keep the actual process function for centrality
181181
// generation to true, since the requisites for being in this context are
182182
// always fulfilled
183-
if (collisions.size() != mults.size()) {
183+
if (collisions.size() != static_cast<size_t>(mults.size())) {
184184
LOGF(fatal, "Size of collisions doesn't match size of multiplicity buffer!");
185185
}
186186
module.generateCentralitiesRun3(ccdb, metadataInfo, bcs, mults, products);

Common/Tools/MultModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ class MultModule
12111211
}
12121212

12131213
// populate centralities per BC
1214-
for (size_t ibc = 0; ibc < bcs.size(); ibc++) {
1214+
for (size_t ibc = 0; ibc < static_cast<size_t>(bcs.size()); ibc++) {
12151215
float bcMultFT0A = 0;
12161216
float bcMultFT0C = 0;
12171217

0 commit comments

Comments
 (0)