We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de54a4a + 64ed3f2 commit 5d91099Copy full SHA for 5d91099
RecoTracker/PixelSeeding/plugins/alpaka/CAHitNtuplet.cc
@@ -140,7 +140,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
140
#endif
141
142
auto oldLayer = 0u;
143
- auto layerCount = 0;
+ auto layerCount = 0u;
144
145
std::vector<int> layerStarts(n_layers + 1);
146
//^ why n_layers + 1? This is a cumulative sum of the number
@@ -162,7 +162,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
162
if (layer != oldLayer) {
163
layerStarts[layerCount++] = n_modules;
164
165
- if (layerCount > n_layers + 1)
+ if (layerCount >= layerStarts.size())
166
break;
167
168
oldLayer = layer;
0 commit comments