Skip to content

Commit

Permalink
Solve warning that is being treated as error
Browse files Browse the repository at this point in the history
  • Loading branch information
JPorron committed Nov 7, 2024
1 parent cff65a9 commit a31c59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestRawSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ vector<pair<UShort_t, double>> TRestRawSignal::GetPeaks(double threshold, UShort
double maxAmplitude = smoothedValues[i];

// Look ahead within the specified distance to find the bin with the maximum amplitude
for (int j = i + 1; j <= i + distance && j < smoothedValues.size(); ++j) {
for (std::vector<double>::size_type j = i + 1; j <= i + distance && j < smoothedValues.size(); ++j) {
if (smoothedValues[j] > maxAmplitude) {
maxAmplitude = smoothedValues[j];
maxBin = j;
Expand Down

0 comments on commit a31c59f

Please sign in to comment.