Skip to content

Commit 918b923

Browse files
committed
Fix integer cast warning
1 parent b66ec2d commit 918b923

2 files changed

Lines changed: 2 additions & 2 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ GPUd() void GPUTPCCFMCLabelFlattener::Thread<GPUTPCCFMCLabelFlattener::setRowOff
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)