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.
1 parent 515dff4 commit 64ed3f2Copy full SHA for 64ed3f2
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