Skip to content

Commit c2707f5

Browse files
committed
Fix integer cast warning
1 parent b66ec2d commit c2707f5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

GPU/GPUTracking/Global/GPUChainTrackingClusterizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ GPUTPCExtraADC GenerateSaturatedSignals(size_t seed = 42)
280280
const int32_t lastTB = 4000 - MaxTailLength; // Don't allow cut off tails at fragment borders
281281
const int32_t tailADC = 250; // charge should decrease over time, but for now just hardcode ADC above the threshold
282282

283-
std::mt19937 gen{seed};
283+
std::mt19937 gen{(uint32_t)seed};
284284
std::uniform_int_distribution<> randomRow(0, GPUTPCGeometry::NROWS - 1);
285285
std::uniform_int_distribution<> randomTB(firstTB, lastTB);
286286
std::uniform_int_distribution<> randomTailLength(MinTailLength, MaxTailLength);

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFMCLabelFlattener.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ GPUd() void GPUTPCCFMCLabelFlattener::Thread<GPUTPCCFMCLabelFlattener::setRowOff
5353
// but HIP clusters don't support MC labels yet and containers are missing for those clusters.
5454
// So append empty label container for each HIP cluster.
5555
// Note: This assumes that HIP cluster are store behind regular clusters!
56-
auto &labels = clusterer.mPlabelsByRow[row].data;
56+
auto& labels = clusterer.mPlabelsByRow[row].data;
5757
labels.resize(std::max(labels.size(), clusterInRow));
5858

5959
uint32_t labelCount = 0;
6060

6161
for (size_t i = 0; i < clusterInRow; i++) {
62-
auto& interim = clusterer.mPlabelsByRow[row].data[i];
62+
auto& interim = labels[i];
6363
labelCount += interim.labels.size();
6464
}
6565

0 commit comments

Comments
 (0)